Issue #4030 - Added check for blank lines

Former-commit-id: b9557d58b8 [formerly bd16f5b1d1 [formerly 7252df4112903132ae0c1bbe36bdc66add219ae5]]
Former-commit-id: bd16f5b1d1
Former-commit-id: 9e6dbcb03d
This commit is contained in:
Mike Duff 2015-02-04 16:59:08 -06:00
parent c693e7c283
commit 733fd3d2b7

View file

@ -253,7 +253,7 @@ public class NdmMenuConverter {
for (String line : productButtonKeys) {
line = line.trim();
// Skip comment lines
if (line.startsWith("#")) {
if (line.startsWith("#") || line.trim().length() == 0) {
continue;
}
@ -276,7 +276,7 @@ public class NdmMenuConverter {
for (String line : dataKeys) {
line = line.trim();
// Skip comment lines
if (line.startsWith("#")) {
if (line.startsWith("#") || line.trim().length() == 0) {
continue;
}
String[] parts = line.split("\\|");