Check if filefilter is null
authoramwaterhouse <Andrew Waterhouse>
Thu, 22 Sep 2005 13:21:51 +0000 (13:21 +0000)
committeramwaterhouse <Andrew Waterhouse>
Thu, 22 Sep 2005 13:21:51 +0000 (13:21 +0000)
src/jalview/io/JalviewFileChooser.java

index 7fffb80..33d18a3 100755 (executable)
@@ -94,6 +94,11 @@ public class JalviewFileChooser
 \r
   public String getSelectedFormat()\r
   {\r
+    if(getFileFilter()==null)\r
+    {\r
+      return null;\r
+    }\r
+\r
     String format = getFileFilter().getDescription();\r
 \r
     if (format.toUpperCase().startsWith("JALVIEW"))\r