From aeb17c7a31d7b0ec469fbcf8c1a9b0d965687115 Mon Sep 17 00:00:00 2001 From: gmungoc Date: Tue, 21 Mar 2017 09:43:32 +0000 Subject: [PATCH] JAL-2438 check for null FeatureRenderer --- src/jalview/ext/jmol/JalviewJmolBinding.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/jalview/ext/jmol/JalviewJmolBinding.java b/src/jalview/ext/jmol/JalviewJmolBinding.java index 19e8b67..94df99a 100644 --- a/src/jalview/ext/jmol/JalviewJmolBinding.java +++ b/src/jalview/ext/jmol/JalviewJmolBinding.java @@ -1182,7 +1182,10 @@ public abstract class JalviewJmolBinding extends AAStructureBindingModel if (notifyLoaded) { FeatureRenderer fr = getFeatureRenderer(null); - fr.featuresAdded(); + if (fr != null) + { + fr.featuresAdded(); + } refreshGUI(); loadNotifiesHandled++; } -- 1.7.10.2