From: gmungoc Date: Tue, 21 Mar 2017 09:43:32 +0000 (+0000) Subject: JAL-2438 check for null FeatureRenderer X-Git-Tag: Release_2_10_2~3^2~153 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=aeb17c7a31d7b0ec469fbcf8c1a9b0d965687115;p=jalview.git JAL-2438 check for null FeatureRenderer --- 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++; }