From 6cb533a9f7a8a02524f1884dc6d7f167a5652a23 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Tue, 15 Feb 2005 10:46:08 +0000 Subject: [PATCH] catch any pid or conservation related bugs here --- src/jalview/gui/UserDefinedColours.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 ); -- 1.7.10.2