Bamboo test#12 reporting stack trace for ViewportRanges by EventQueue
authorBobHanson <hansonr@stolaf.edu>
Mon, 23 Mar 2020 21:15:12 +0000 (16:15 -0500)
committerBobHanson <hansonr@stolaf.edu>
Mon, 23 Mar 2020 21:15:12 +0000 (16:15 -0500)
src/jalview/viewmodel/ViewportRanges.java

index 92152cf..f42e730 100644 (file)
@@ -23,6 +23,8 @@ package jalview.viewmodel;
 import jalview.datamodel.AlignmentI;
 import jalview.datamodel.HiddenColumns;
 
+import java.util.Arrays;
+
 /**
  * Supplies and updates viewport properties relating to position such as: start
  * and end residues and sequences; ideally will serve hidden columns/rows too.
@@ -80,8 +82,15 @@ public class ViewportRanges extends ViewportProperties
 
   private void setEndSeqTest(int val)
   {
+    String st = Thread.currentThread().toString();
     sTest += "ViewPortRanges.setEndseqTest " + val + " "
-            + Thread.currentThread() + "\n";
+            + st + "\n";
+    if (st.indexOf("Event") >= 0)
+    {
+      sTest += Arrays.toString(new NullPointerException().getStackTrace())
+              .substring(0, 500)
+              + "\n";
+    }
     endSeq = val;
   }
   /**