OSDN Git Service

Evernoteサムネイルの取得に失敗する問題を修正した version0.4.1
authoryuki <kimaira7@gmail.com>
Fri, 15 Nov 2013 08:48:51 +0000 (17:48 +0900)
committeryuki <kimaira7@gmail.com>
Fri, 15 Nov 2013 08:48:51 +0000 (17:48 +0900)
src/cx/fbn/nevernote/Global.java
src/cx/fbn/nevernote/threads/ENThumbnailRunner.java

index 4145dd8..3873d54 100644 (file)
@@ -68,8 +68,8 @@ import cx.fbn.nevernote.utilities.Pair;
 
 public class Global {
        // Set current version and the known versions.
 
 public class Global {
        // Set current version and the known versions.
-       public static String version = "0.4";
-       public static String[] validVersions = {"0.4", "0.3", "0.2", "0.1.3", "0.1.2", "0.1.1", "0.1"};
+       public static String version = "0.4.1";
+       public static String[] validVersions = {"0.4.1", "0.4", "0.3", "0.2", "0.1.3", "0.1.2", "0.1.1", "0.1"};
        
     public static String username = ""; 
     //public static String password = "";     
        
     public static String username = ""; 
     //public static String password = "";     
index 312fe83..183237c 100644 (file)
@@ -124,10 +124,11 @@ public class ENThumbnailRunner extends QObject implements Runnable{
                OAuthTokenizer tokenizer = new OAuthTokenizer();
        AESEncrypter aes = new AESEncrypter();
        try {
                OAuthTokenizer tokenizer = new OAuthTokenizer();
        AESEncrypter aes = new AESEncrypter();
        try {
-                       aes.decrypt(new FileInputStream(Global.getFileManager().getHomeDirFile("oauth.txt")));
+                       aes.decrypt(new FileInputStream(Global.getFileManager().getHomeDirFile("oauthkey.txt")));
                } catch (FileNotFoundException e) {
                        logger.log(logger.HIGH, "Evernoteサムネイル取得中に例外発生:FileNotFoundException");
                        e.printStackTrace();
                } catch (FileNotFoundException e) {
                        logger.log(logger.HIGH, "Evernoteサムネイル取得中に例外発生:FileNotFoundException");
                        e.printStackTrace();
+                       return null;
                }
                String authString = aes.getString();
                String oauthToken = new String();
                }
                String authString = aes.getString();
                String oauthToken = new String();