From d0c43600d78199257976a6ef1eb4d8f5b59016a4 Mon Sep 17 00:00:00 2001 From: veryben Date: Fri, 19 May 2017 10:21:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E8=BD=BD=E9=85=8D=E7=BD=AE=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E5=A4=B1=E8=B4=A5=E6=97=B6=E4=B8=8D=E6=89=A7=E8=A1=8C?= =?UTF-8?q?=E5=90=8E=E7=BB=AD=E9=85=8D=E7=BD=AE=E9=A1=B9=E8=AF=BB=E5=8F=96?= =?UTF-8?q?=E5=92=8C=E8=A7=A3=E6=9E=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/org/csource/common/IniFileReader.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/csource/common/IniFileReader.java b/src/main/java/org/csource/common/IniFileReader.java index 34681f8..3ade675 100644 --- a/src/main/java/org/csource/common/IniFileReader.java +++ b/src/main/java/org/csource/common/IniFileReader.java @@ -25,7 +25,7 @@ public class IniFileReader { /** * @param conf_filename config filename */ - public IniFileReader(String conf_filename) throws FileNotFoundException, IOException { + public IniFileReader(String conf_filename) throws IOException { this.conf_filename = conf_filename; loadFromFile(conf_filename); } @@ -155,6 +155,7 @@ public class IniFileReader { private void readToParamTable(InputStream in) throws IOException { this.paramTable = new Hashtable(); + if (in == null) return; String line; String[] parts; String name;