From: gmungoc Date: Tue, 18 Dec 2018 18:06:41 +0000 (+0000) Subject: JAL-3048 fix NPE in file chooser callbacks map X-Git-Tag: Release_2_11_4_0~45^2~18^2~342 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=1367c999fa2c828ebf1bc0c01ace391ecf442fbb;p=jalview.git JAL-3048 fix NPE in file chooser callbacks map --- diff --git a/src/jalview/io/JalviewFileChooser.java b/src/jalview/io/JalviewFileChooser.java index 7909d0c..88a337a 100755 --- a/src/jalview/io/JalviewFileChooser.java +++ b/src/jalview/io/JalviewFileChooser.java @@ -37,6 +37,7 @@ import java.beans.PropertyChangeEvent; import java.beans.PropertyChangeListener; import java.io.File; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.StringTokenizer; @@ -64,7 +65,7 @@ public class JalviewFileChooser extends JFileChooser implements DialogRunnerI, { private static final long serialVersionUID = 1L; - private Map callbacks; + private Map callbacks = new HashMap<>(); File selectedFile = null;