Dont add ServiceListeners if desktop is null
authoramwaterhouse <Andrew Waterhouse>
Mon, 19 Sep 2005 13:40:55 +0000 (13:40 +0000)
committeramwaterhouse <Andrew Waterhouse>
Mon, 19 Sep 2005 13:40:55 +0000 (13:40 +0000)
src/jalview/gui/AlignFrame.java

index b730c0f..79dc866 100755 (executable)
@@ -107,7 +107,7 @@ public class AlignFrame
      }\r
    });\r
 \r
-\r
+       if(Desktop.desktop!=null)\r
     addServiceListeners();\r
   }\r
 \r