Check description and status are not null in mouse over
authoramwaterhouse <Andrew Waterhouse>
Wed, 15 Feb 2006 15:19:22 +0000 (15:19 +0000)
committeramwaterhouse <Andrew Waterhouse>
Wed, 15 Feb 2006 15:19:22 +0000 (15:19 +0000)
src/jalview/appletgui/SeqPanel.java

index 2f06d64..2a25263 100755 (executable)
@@ -272,8 +272,10 @@ public class SeqPanel
             first = false;\r
           }\r
 \r
-          text.append(sf.getDescription());\r
-          if (sf.getStatus().length() > 0)\r
+          if(sf.getDescription()!=null)\r
+            text.append(sf.getDescription());\r
+\r
+          if (sf.getStatus()!=null && sf.getStatus().length() > 0)\r
           {\r
             text.append(" (" + sf.getStatus() + ")");\r
           }\r