Dont add null tooltip
authoramwaterhouse <Andrew Waterhouse>
Thu, 1 Feb 2007 14:07:34 +0000 (14:07 +0000)
committeramwaterhouse <Andrew Waterhouse>
Thu, 1 Feb 2007 14:07:34 +0000 (14:07 +0000)
src/jalview/gui/AnnotationPanel.java

index e0b36d3..1ebabfe 100755 (executable)
@@ -539,7 +539,8 @@ public class AnnotationPanel extends JPanel implements MouseListener,
                 this.setToolTipText(tip.toString() + "</html>");\r
               }\r
             }\r
-            else if(aa[row].annotations[res] != null)\r
+            else if(aa[row].annotations[res] != null\r
+                    && aa[row].annotations[res].description!=null)\r
               this.setToolTipText(aa[row].annotations[res].description);\r
 \r
             if(aa[row].annotations[res]!=null)\r