From: amwaterhouse Date: Thu, 22 Sep 2005 13:21:51 +0000 (+0000) Subject: Check if filefilter is null X-Git-Tag: Release_2_06~26 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=93020ed6ef8dd285c987f79d258508bd53187433;p=jalview.git Check if filefilter is null --- diff --git a/src/jalview/io/JalviewFileChooser.java b/src/jalview/io/JalviewFileChooser.java index 7fffb80..33d18a3 100755 --- a/src/jalview/io/JalviewFileChooser.java +++ b/src/jalview/io/JalviewFileChooser.java @@ -94,6 +94,11 @@ public class JalviewFileChooser public String getSelectedFormat() { + if(getFileFilter()==null) + { + return null; + } + String format = getFileFilter().getDescription(); if (format.toUpperCase().startsWith("JALVIEW"))