JAL-1016 - do our assertions immediatly
authorJim Procter <jprocter@compbio.dundee.ac.uk>
Sun, 7 Jul 2013 11:38:02 +0000 (12:38 +0100)
committerJim Procter <jprocter@compbio.dundee.ac.uk>
Sun, 7 Jul 2013 11:38:02 +0000 (12:38 +0100)
src/jalview/ext/jmol/JalviewJmolBinding.java

index 257ca8c..216c09e 100644 (file)
@@ -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++)
     {