From: Jim Procter Date: Fri, 4 Apr 2014 15:16:58 +0000 (+0100) Subject: fix for JAL-1461 - check that filetype setting in browser is non-null X-Git-Tag: Jalview_2_9~199^2~2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=2ef4aee0384ca897acce0281b3eb601947360451;p=jalview.git fix for JAL-1461 - check that filetype setting in browser is non-null --- diff --git a/src/jalview/gui/Desktop.java b/src/jalview/gui/Desktop.java index 6715537..fc6d6f9 100644 --- a/src/jalview/gui/Desktop.java +++ b/src/jalview/gui/Desktop.java @@ -914,7 +914,7 @@ public class Desktop extends jalview.jbgui.GDesktop implements .getSelectedFile().getParent()); String format = null; - if (chooser.getSelectedFormat().equals("Jalview")) + if (chooser.getSelectedFormat()!=null && chooser.getSelectedFormat().equals("Jalview")) { format = "Jalview"; }