JAL-2438 check for null FeatureRenderer
[jalview.git] / 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++;
     }