From 296572df6fc3100c1fd97f3714bb2b6628140310 Mon Sep 17 00:00:00 2001 From: gmungoc Date: Tue, 11 Oct 2016 12:09:37 +0100 Subject: [PATCH] JAL-2241 check for null jprovider when processing New View action --- src/jalview/gui/Jalview2XML.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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())) { -- 1.7.10.2