Return if UNIPROT_CACHE is null
authoramwaterhouse <Andrew Waterhouse>
Thu, 18 Aug 2005 14:26:01 +0000 (14:26 +0000)
committeramwaterhouse <Andrew Waterhouse>
Thu, 18 Aug 2005 14:26:01 +0000 (14:26 +0000)
src/jalview/io/SequenceFeatureFetcher.java

index 89d84b0..0c82f6f 100755 (executable)
@@ -414,6 +414,9 @@ public class SequenceFeatureFetcher implements Runnable
 \r
         try\r
         {\r
+            if(jalview.bin.Cache.getProperty("UNIPROT_CACHE")==null)\r
+              return;\r
+\r
             BufferedReader in = new BufferedReader(new FileReader(\r
                         jalview.bin.Cache.getProperty("UNIPROT_CACHE")));\r
 \r
@@ -450,6 +453,9 @@ public class SequenceFeatureFetcher implements Runnable
 \r
         try\r
         {\r
+            if(jalview.bin.Cache.getProperty("UNIPROT_CACHE")==null)\r
+              return;\r
+\r
             BufferedReader in = new BufferedReader(new FileReader(\r
                         jalview.bin.Cache.getProperty("UNIPROT_CACHE")));\r
 \r