catch any pid or conservation related bugs here
authoramwaterhouse <Andrew Waterhouse>
Tue, 15 Feb 2005 10:46:08 +0000 (10:46 +0000)
committeramwaterhouse <Andrew Waterhouse>
Tue, 15 Feb 2005 10:46:08 +0000 (10:46 +0000)
src/jalview/gui/UserDefinedColours.java

index 1a3fa86..642f473 100755 (executable)
@@ -60,8 +60,10 @@ public class UserDefinedColours extends GUserDefinedColours implements ChangeLis
     else\r
       cs = ap.av.getGlobalColourScheme();\r
 \r
-    if(cs!=null)\r
-      col = cs.findColour( aa, -1, null);\r
+\r
+    try{\r
+      col = cs.findColour(aa, -1, null);\r
+    }catch(Exception ex){}\r
 \r
     button.setBackground(  col );\r
     oldColours.addElement( col );\r