JAL-2241 check for null jprovider when processing New View action
[jalview.git] / src / jalview / gui / Jalview2XML.java
index 9a8e5f6..a4e5785 100644 (file)
@@ -3018,7 +3018,8 @@ public class Jalview2XML
                 entry.setType(PDBEntry.Type.FILE);
               }
             }
-            if (ids[p].getFile() != null)
+            // jprovider is null when executing 'New View'
+            if (ids[p].getFile() != null && jprovider != null)
             {
               if (!pdbloaded.containsKey(ids[p].getFile()))
               {