JAL-3674 Jmol seems to sometimes return a null for some commands, handle it at source
authorJim Procter <j.procter@dundee.ac.uk>
Tue, 27 Jul 2021 13:26:09 +0000 (14:26 +0100)
committerJim Procter <j.procter@dundee.ac.uk>
Mon, 30 Aug 2021 11:17:32 +0000 (12:17 +0100)
src/jalview/structures/models/AAStructureBindingModel.java

index 16dd96c..289d340 100644 (file)
@@ -1096,7 +1096,10 @@ public abstract class AAStructureBindingModel
         for (StructureCommandI cmd : cmds)
         {
           List<String> replies = executeCommand(cmd, true);
-          response.addAll(replies);
+          if (replies != null)
+          {
+            response.addAll(replies);
+          }
         }
         return response;
       } finally