From 93020ed6ef8dd285c987f79d258508bd53187433 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Thu, 22 Sep 2005 13:21:51 +0000 Subject: [PATCH] Check if filefilter is null --- src/jalview/io/JalviewFileChooser.java | 5 +++++ 1 file changed, 5 insertions(+) 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")) -- 1.7.10.2