From: amwaterhouse Date: Wed, 15 Feb 2006 15:19:22 +0000 (+0000) Subject: Check description and status are not null in mouse over X-Git-Tag: Root_VamJalview_2_07b+~142 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=acedfd8c93a1d897e2441714d5d4af487e57d14c;p=jalview.git Check description and status are not null in mouse over --- diff --git a/src/jalview/appletgui/SeqPanel.java b/src/jalview/appletgui/SeqPanel.java index 2f06d64..2a25263 100755 --- a/src/jalview/appletgui/SeqPanel.java +++ b/src/jalview/appletgui/SeqPanel.java @@ -272,8 +272,10 @@ public class SeqPanel first = false; } - text.append(sf.getDescription()); - if (sf.getStatus().length() > 0) + if(sf.getDescription()!=null) + text.append(sf.getDescription()); + + if (sf.getStatus()!=null && sf.getStatus().length() > 0) { text.append(" (" + sf.getStatus() + ")"); }