From 4733d5a5d06f4e5e607b8534f67f9a78a0323104 Mon Sep 17 00:00:00 2001 From: James Procter Date: Tue, 16 May 2023 17:21:58 +0100 Subject: [PATCH] =?utf8?q?JAL-4089=20-=20if=20no=20centerViewOn=20commands=20?= =?utf8?q?are=20given,=20don=E2=80=99t=20try=20to=20execute!?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- 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 8436b48..9e8f286 100644 --- a/src/jalview/structures/models/AAStructureBindingModel.java +++ b/src/jalview/structures/models/AAStructureBindingModel.java @@ -973,7 +973,10 @@ public abstract class AAStructureBindingModel } List finalView = commandGenerator .centerViewOn(models); - executeCommands(finalView, false, "Centered on Superposition"); + if (finalView!=null && finalView.size()>0) + { + executeCommands(finalView, false, "Centered on Superposition"); + } } return error; } -- 1.7.10.2