From 281564a1540bce2ec9f5018398da9ad296b8edf7 Mon Sep 17 00:00:00 2001 From: jprocter Date: Sat, 17 Nov 2012 18:47:51 +0000 Subject: [PATCH] openjdk7 returns null for default value selected format if it hasn't been touched --- 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 877aebb..db7c32c 100644 --- a/src/jalview/gui/Desktop.java +++ b/src/jalview/gui/Desktop.java @@ -912,7 +912,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