From fc7dac25fd7a4eac42083e9aa94d1e752cabbe8b Mon Sep 17 00:00:00 2001 From: James Procter Date: Tue, 31 Oct 2023 12:01:03 +0000 Subject: [PATCH] JAL-244 noticed NPE exception was possible when visibility was adjusted in wrapped mode --- src/jalview/gui/AnnotationLabels.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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