nullpointer bug fix on consensus thread
[jalview.git] / src / jalview / io / FileLoader.java
index 4177eab..5f53579 100755 (executable)
@@ -117,7 +117,7 @@ public class FileLoader
 \r
     jalview.bin.Cache.setProperty(type, newHistory.toString());\r
 \r
-    if (type.equals(FormatAdapter.FILE))\r
+    if (protocol.equals(FormatAdapter.FILE))\r
     {\r
       jalview.bin.Cache.setProperty("DEFAULT_FILE_FORMAT", format);\r
     }\r