From 1367c999fa2c828ebf1bc0c01ace391ecf442fbb Mon Sep 17 00:00:00 2001 From: gmungoc Date: Tue, 18 Dec 2018 18:06:41 +0000 Subject: [PATCH] JAL-3048 fix NPE in file chooser callbacks map --- src/jalview/io/JalviewFileChooser.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 1.7.10.2