JAL-3583 better handling of null or empty tooltip on annotation
[jalview.git] / src / jalview / gui / AnnotationPanel.java
index 0eec840..9dfad08 100755 (executable)
@@ -878,6 +878,10 @@ public class AnnotationPanel extends JPanel implements AwtRenderPanelI,
             && ann.annotations[column] != null)
     {
       tooltip = ann.annotations[column].description;
+      if ("".equals(tooltip))
+      {
+        tooltip = null;
+      }
     }
 
     return tooltip;