From: BobHanson Date: Mon, 23 Mar 2020 21:15:12 +0000 (-0500) Subject: Bamboo test#12 reporting stack trace for ViewportRanges by EventQueue X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=919ef446b17a24fba04768e242a14f6ee31c3461;p=jalview.git Bamboo test#12 reporting stack trace for ViewportRanges by EventQueue --- diff --git a/src/jalview/viewmodel/ViewportRanges.java b/src/jalview/viewmodel/ViewportRanges.java index 92152cf..f42e730 100644 --- a/src/jalview/viewmodel/ViewportRanges.java +++ b/src/jalview/viewmodel/ViewportRanges.java @@ -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; } /**