OSDN Git Service

プログラムがバグでスタートできない問題を解決 v0.61
authorU-nishio-PC8\nishio <spark_xp@users.sourceforge.jp>
Fri, 2 Sep 2011 18:06:36 +0000 (03:06 +0900)
committerU-nishio-PC8\nishio <spark_xp@users.sourceforge.jp>
Fri, 2 Sep 2011 18:06:36 +0000 (03:06 +0900)
src/twitter/gui/action/TweetMainAction.java
src/twitter/manage/ClientVersionManager.java

index 67a9455..c04139a 100644 (file)
@@ -363,7 +363,9 @@ public class TweetMainAction implements ConnectionLifeCycleListener{
                updateNotifyInformation();
 
                //streaming apiの状態listener設定
-               this.tweetManager.getStreamManager().addCollectionLifeCycleListener(this);
+               if( this.tweetManager != null && this.tweetManager.getStreamManager() != null ) {
+                       this.tweetManager.getStreamManager().addCollectionLifeCycleListener(this);
+               }
        }
 
        /**
@@ -470,7 +472,13 @@ public class TweetMainAction implements ConnectionLifeCycleListener{
        public void updateNotifyInformation() {
            //streaming api利用時、fav通知
            if( this.favNotify ) {
-               this.tweetManager.getStreamManager().setFavNotifyManager(new TweetFavNotifyManager(this.trayIcon));
+               try {
+                       if( this.tweetManager != null && this.tweetManager.getStreamManager() != null ) {
+                               this.tweetManager.getStreamManager().setFavNotifyManager(new TweetFavNotifyManager(this.trayIcon));
+                       }
+               }catch(Exception e) {
+                       e.printStackTrace();
+               }
            }
        }
 
@@ -2492,33 +2500,33 @@ public class TweetMainAction implements ConnectionLifeCycleListener{
        public void setFavNotify(boolean notify) {
            this.favNotify = notify;
        }
-       
+
        /**
         * 偶数行テーブルの色取得
-        * @return 
+        * @return
         */
        public Color getEvenTableColor() {
            return evenTableColor;
        }
-       
+
        /**
         * 偶数行テーブルの色設定
         */
        public void setEvenTableColor(Color evenTableColor) {
            this.evenTableColor = evenTableColor;
        }
-       
+
        /**
         * 奇数行テーブルの色取得
-        * @return 
+        * @return
         */
        public Color getOddTableColor() {
            return oddTableColor;
        }
-       
+
        /**
         * 奇数行テーブルの色設定
-        * @param oddTableColor 
+        * @param oddTableColor
         */
        public void setOddTableColor(Color oddTableColor) {
            this.oddTableColor = oddTableColor;
index cc6b9b4..1452a12 100644 (file)
@@ -29,7 +29,7 @@ import org.xml.sax.SAXParseException;
  *\r
  */\r
 public class ClientVersionManager {\r
-       public static final String currentVersion = "0.6";\r
+       public static final String currentVersion = "0.61";\r
        public static final String nishioTweetManagerURL = "http://densan-labs.net/software/ntm/";\r
        private static final String characterSet = "UTF-8";\r
        private static final String latestInformationURL = "http://git.densan-labs.net/ntm/latest.txt";\r