Fix NPE in the parsing of property file.
this could happen if the log object is null and the parsing fails. Change-Id: I6dbcafab26c5405efba20b30f511104fcee5bf78
This commit is contained in:
@@ -605,8 +605,10 @@ public final class SdkManager {
|
|||||||
if (m.matches()) {
|
if (m.matches()) {
|
||||||
map.put(m.group(1), m.group(2));
|
map.put(m.group(1), m.group(2));
|
||||||
} else {
|
} else {
|
||||||
|
if (log != null) {
|
||||||
log.warning("Error parsing '%1$s': \"%2$s\" is not a valid syntax",
|
log.warning("Error parsing '%1$s': \"%2$s\" is not a valid syntax",
|
||||||
buildProp.getAbsolutePath(), line);
|
buildProp.getAbsolutePath(), line);
|
||||||
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user