JAL-2438 check for null FeatureRenderer
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Tue, 21 Mar 2017 09:43:32 +0000 (09:43 +0000)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Tue, 21 Mar 2017 09:43:32 +0000 (09:43 +0000)
src/jalview/ext/jmol/JalviewJmolBinding.java

index 19e8b67..94df99a 100644 (file)
@@ -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++;
     }