From: Jim Procter Date: Tue, 27 Jul 2021 13:26:09 +0000 (+0100) Subject: JAL-3674 Jmol seems to sometimes return a null for some commands, handle it at source X-Git-Tag: Release_2_11_2_0~39^2~36^2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=7856e91f60adc5c2d4943bad84a5a83e1412f00c;p=jalview.git JAL-3674 Jmol seems to sometimes return a null for some commands, handle it at source --- diff --git a/src/jalview/structures/models/AAStructureBindingModel.java b/src/jalview/structures/models/AAStructureBindingModel.java index 16dd96c..289d340 100644 --- a/src/jalview/structures/models/AAStructureBindingModel.java +++ b/src/jalview/structures/models/AAStructureBindingModel.java @@ -1096,7 +1096,10 @@ public abstract class AAStructureBindingModel for (StructureCommandI cmd : cmds) { List replies = executeCommand(cmd, true); - response.addAll(replies); + if (replies != null) + { + response.addAll(replies); + } } return response; } finally