JAL-2020 fix for Jmol choking jalview while loading a structure
authortcofoegbu <tcnofoegbu@dundee.ac.uk>
Thu, 2 Jun 2016 16:36:49 +0000 (17:36 +0100)
committertcofoegbu <tcnofoegbu@dundee.ac.uk>
Thu, 2 Jun 2016 16:36:49 +0000 (17:36 +0100)
src/jalview/structures/models/AAStructureBindingModel.java

index 42fbfa9..dc42315 100644 (file)
@@ -598,6 +598,10 @@ public abstract class AAStructureBindingModel extends
       for (String file : files)
       {
         notLoaded = file;
+        if (file == null)
+        {
+          continue;
+        }
         try
         {
           StructureMapping[] sm = getSsm().getMapping(file);