From: amwaterhouse Date: Tue, 15 Feb 2005 10:46:08 +0000 (+0000) Subject: catch any pid or conservation related bugs here X-Git-Tag: Release_2_0~659 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=6cb533a9f7a8a02524f1884dc6d7f167a5652a23;p=jalview.git catch any pid or conservation related bugs here --- diff --git a/src/jalview/gui/UserDefinedColours.java b/src/jalview/gui/UserDefinedColours.java index 1a3fa86..642f473 100755 --- a/src/jalview/gui/UserDefinedColours.java +++ b/src/jalview/gui/UserDefinedColours.java @@ -60,8 +60,10 @@ public class UserDefinedColours extends GUserDefinedColours implements ChangeLis else cs = ap.av.getGlobalColourScheme(); - if(cs!=null) - col = cs.findColour( aa, -1, null); + + try{ + col = cs.findColour(aa, -1, null); + }catch(Exception ex){} button.setBackground( col ); oldColours.addElement( col );