From ea7aa18440e6140ec7485e6cefdfb1dffb945580 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Mon, 18 Apr 2022 14:49:47 +0100 Subject: [PATCH] JAL-3997 check for tooltip being null before checking equivalence to last tooltip string --- src/jalview/gui/SeqPanel.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/jalview/gui/SeqPanel.java b/src/jalview/gui/SeqPanel.java index 54e3db7..111b4c0 100644 --- a/src/jalview/gui/SeqPanel.java +++ b/src/jalview/gui/SeqPanel.java @@ -1184,7 +1184,8 @@ public class SeqPanel extends JPanel String tooltip = AnnotationPanel.buildToolTip(anns[rowIndex], column, anns); - if (!tooltip.equals(lastTooltip)) + if (tooltip == null ? tooltip != lastTooltip + : !tooltip.equals(lastTooltip)) { lastTooltip = tooltip; lastFormattedTooltip = tooltip == null ? null -- 1.7.10.2