From: James Procter Date: Tue, 16 May 2023 16:21:58 +0000 (+0100) Subject: JAL-4089 - if no centerViewOn commands are given, don’t try to execute! X-Git-Tag: Release_2_11_3_0~14^2~3^2^2~27 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=4733d5a5d06f4e5e607b8534f67f9a78a0323104;p=jalview.git JAL-4089 - if no centerViewOn commands are given, don’t try to execute! --- 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; }