From: jprocter Date: Sat, 17 Nov 2012 18:47:51 +0000 (+0000) Subject: openjdk7 returns null for default value selected format if it hasn't been touched X-Git-Tag: Jalview_2_9~265^2~18 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=281564a1540bce2ec9f5018398da9ad296b8edf7;p=jalview.git openjdk7 returns null for default value selected format if it hasn't been touched --- 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"; }