From 0f8e8fef1abe7837642706ee5b5f97d3e1eda9db Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Sun, 7 Jul 2013 12:38:02 +0100 Subject: [PATCH] JAL-1016 - do our assertions immediatly --- src/jalview/ext/jmol/JalviewJmolBinding.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/jalview/ext/jmol/JalviewJmolBinding.java b/src/jalview/ext/jmol/JalviewJmolBinding.java index 257ca8c..216c09e 100644 --- a/src/jalview/ext/jmol/JalviewJmolBinding.java +++ b/src/jalview/ext/jmol/JalviewJmolBinding.java @@ -323,9 +323,10 @@ public abstract class JalviewJmolBinding implements StructureListener, public void superposeStructures(AlignmentI[] _alignment, int[] _refStructure, ColumnSelection[] _hiddenCols) { + assert (_alignment.length == _refStructure.length && _alignment.length != _hiddenCols.length); + String[] files = getPdbFile(); StringBuffer selectioncom = new StringBuffer(); - assert (_alignment.length == _refStructure.length && _alignment.length != _hiddenCols.length); // union of all aligned positions are collected together. for (int a = 0; a < _alignment.length; a++) { -- 1.7.10.2