From 919ef446b17a24fba04768e242a14f6ee31c3461 Mon Sep 17 00:00:00 2001 From: BobHanson Date: Mon, 23 Mar 2020 16:15:12 -0500 Subject: [PATCH] Bamboo test#12 reporting stack trace for ViewportRanges by EventQueue --- src/jalview/viewmodel/ViewportRanges.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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; } /** -- 1.7.10.2