From: gmungoc Date: Tue, 11 Oct 2016 11:09:37 +0000 (+0100) Subject: JAL-2241 check for null jprovider when processing New View action X-Git-Tag: Release_2_10_1~27 X-Git-Url: http://source.jalview.org/gitweb/?p=jalview.git;a=commitdiff_plain;h=296572df6fc3100c1fd97f3714bb2b6628140310 JAL-2241 check for null jprovider when processing New View action --- diff --git a/src/jalview/gui/Jalview2XML.java b/src/jalview/gui/Jalview2XML.java index 9a8e5f6..a4e5785 100644 --- a/src/jalview/gui/Jalview2XML.java +++ b/src/jalview/gui/Jalview2XML.java @@ -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())) {