JAL-3048 check for headless
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Mon, 23 Jul 2018 10:54:56 +0000 (11:54 +0100)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Mon, 23 Jul 2018 10:54:56 +0000 (11:54 +0100)
src/jalview/gui/ImageExporter.java

index 1f83b7c..fc971e2 100644 (file)
@@ -210,7 +210,7 @@ public class ImageExporter
    */
   void setStatus(String msg, long id)
   {
-    if (messageBoard != null)
+    if (messageBoard != null && !Jalview.isHeadlessMode())
     {
       messageBoard.setProgressBar(msg, id);
     }