From 0e8ea80cb031f3bb9cf8f979fe138bf68dbc2446 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Tue, 27 Jul 2021 14:26:09 +0100 Subject: [PATCH] JAL-3674 Jmol seems to sometimes return a null for some commands, handle it at source --- src/jalview/structures/models/AAStructureBindingModel.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 1.7.10.2