From 2ef4aee0384ca897acce0281b3eb601947360451 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Fri, 4 Apr 2014 16:16:58 +0100 Subject: [PATCH] fix for JAL-1461 - check that filetype setting in browser is non-null --- src/jalview/gui/Desktop.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"; } -- 1.7.10.2