From 36c7b21df9a667ede49034e5274516d258590dd9 Mon Sep 17 00:00:00 2001
From: amwaterhouse <Andrew Waterhouse>
Date: Thu, 1 Feb 2007 14:07:34 +0000
Subject: [PATCH] Dont add null tooltip

---
 src/jalview/gui/AnnotationPanel.java |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/jalview/gui/AnnotationPanel.java b/src/jalview/gui/AnnotationPanel.java
index e0b36d3..1ebabfe 100755
--- a/src/jalview/gui/AnnotationPanel.java
+++ b/src/jalview/gui/AnnotationPanel.java
@@ -539,7 +539,8 @@ public class AnnotationPanel extends JPanel implements MouseListener,
                 this.setToolTipText(tip.toString() + "</html>");
               }
             }
-            else if(aa[row].annotations[res] != null)
+            else if(aa[row].annotations[res] != null
+                    && aa[row].annotations[res].description!=null)
               this.setToolTipText(aa[row].annotations[res].description);
 
             if(aa[row].annotations[res]!=null)
-- 
1.7.10.2