JAL-1907 bugfix for NPE while parsing a features file
authortcofoegbu <tcnofoegbu@dundee.ac.uk>
Fri, 25 Sep 2015 11:29:24 +0000 (12:29 +0100)
committertcofoegbu <tcnofoegbu@dundee.ac.uk>
Fri, 25 Sep 2015 11:29:24 +0000 (12:29 +0100)
src/jalview/io/IdentifyFile.java

index ff0f0cc..aec0540 100755 (executable)
@@ -260,6 +260,10 @@ public class IdentifyFile
           {
             break;
           }
+          if (data == null)
+          {
+            break;
+          }
         }
 
         if (data.indexOf("{\"") > -1)