加载配置文件失败时不执行后续配置项读取和解析
parent
75931a8053
commit
d0c43600d7
|
@ -25,7 +25,7 @@ public class IniFileReader {
|
||||||
/**
|
/**
|
||||||
* @param conf_filename config filename
|
* @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;
|
this.conf_filename = conf_filename;
|
||||||
loadFromFile(conf_filename);
|
loadFromFile(conf_filename);
|
||||||
}
|
}
|
||||||
|
@ -155,6 +155,7 @@ public class IniFileReader {
|
||||||
|
|
||||||
private void readToParamTable(InputStream in) throws IOException {
|
private void readToParamTable(InputStream in) throws IOException {
|
||||||
this.paramTable = new Hashtable();
|
this.paramTable = new Hashtable();
|
||||||
|
if (in == null) return;
|
||||||
String line;
|
String line;
|
||||||
String[] parts;
|
String[] parts;
|
||||||
String name;
|
String name;
|
||||||
|
|
Loading…
Reference in New Issue