JAL-1761 pattern for structure viewer construction from project file
[jalview.git] / src / jalview / ext / jmol / JalviewJmolBinding.java
index 0b37ceb..63c1fd3 100644 (file)
@@ -598,6 +598,11 @@ public abstract class JalviewJmolBinding extends AAStructureBindingModel
     modelFileNames = null;
     boolean notifyLoaded = false;
     String[] modelfilenames = getStructureFiles();
+    if (modelfilenames == null)
+    {
+      // Jmol is still loading files!
+      return;
+    }
     // first check if we've lost any structures
     if (oldmodels != null && oldmodels.length > 0)
     {