JAL-2241 check for null jprovider when processing New View action
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Tue, 11 Oct 2016 11:09:37 +0000 (12:09 +0100)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Tue, 11 Oct 2016 11:09:37 +0000 (12:09 +0100)
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()))
               {