Remove latestVersion if null
[jalview.git] / 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