From: Jim Procter Date: Mon, 18 Apr 2022 13:49:47 +0000 (+0100) Subject: JAL-3997 check for tooltip being null before checking equivalence to last tooltip... X-Git-Tag: Release_2_11_2_6~68^2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=ea7aa18440e6140ec7485e6cefdfb1dffb945580;p=jalview.git JAL-3997 check for tooltip being null before checking equivalence to last tooltip string --- 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