Fixed bad format property line management.

This commit is contained in:
Christian P. MOMON 2020-11-26 06:36:16 +01:00
parent 186244c18f
commit e95dc5f0c8
2 changed files with 2 additions and 2 deletions

View file

@ -208,7 +208,7 @@ public class PropertyChecker
{ {
String line = iterator.next(); String line = iterator.next();
if ((!StringUtils.isBlank(line)) && (!line.startsWith("#"))) if ((!StringUtils.isBlank(line)) && (!line.startsWith("#")) && (line.contains("=")))
{ {
String[] tokens = line.split("=", 2); String[] tokens = line.split("=", 2);
PathProperty property = new PathProperty(tokens[0].trim(), tokens[1].trim()); PathProperty property = new PathProperty(tokens[0].trim(), tokens[1].trim());

View file

@ -235,7 +235,7 @@ public class PathPropertyUtils
ended = true; ended = true;
result = null; result = null;
} }
else if ((StringUtils.isNotBlank(line)) && (!line.startsWith("#"))) else if ((StringUtils.isNotBlank(line)) && (!line.startsWith("#")) && (line.contains("=")))
{ {
ended = true; ended = true;
result = line; result = line;