From: James Procter Date: Tue, 31 Oct 2023 12:01:03 +0000 (+0000) Subject: JAL-244 noticed NPE exception was possible when visibility was adjusted in wrapped... X-Git-Tag: Release_2_11_4_0~122^2~4 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=fc7dac25fd7a4eac42083e9aa94d1e752cabbe8b;p=jalview.git JAL-244 noticed NPE exception was possible when visibility was adjusted in wrapped mode --- diff --git a/src/jalview/gui/AnnotationLabels.java b/src/jalview/gui/AnnotationLabels.java index a3f7e00..a0d70b4 100755 --- a/src/jalview/gui/AnnotationLabels.java +++ b/src/jalview/gui/AnnotationLabels.java @@ -1554,7 +1554,7 @@ public class AnnotationLabels extends JPanel } } - if (!resizePanel && dragEvent != null && aa != null) + if (!resizePanel && dragEvent != null && aa != null && selectedRow>-1 && selectedRow