JAL-4195 add exception handling for all image output ops - still need to refactor...
[jalview.git] / src / jalview / bin / Commands.java
index b9c04f5..bcf231e 100644 (file)
@@ -629,8 +629,15 @@ public class Commands
               if (sview instanceof AppJmol)
               {
                 AppJmol jmol = (AppJmol) sview;
-                jmol.makePDBImage(structureImageFile, imageType, renderer,
+                try { 
+                  jmol.makePDBImage(structureImageFile, imageType, renderer,
                         userBis);
+                }
+                catch (ImageOutputException ioexc)
+                {
+                  Console.warn("Unexpected error whilst exporting image to "+structureImageFile,ioexc);
+                }
+
               }
               break;
             default: