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~42 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=0e8ea80cb031f3bb9cf8f979fe138bf68dbc2446;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