Merge change I6dbcafab into eclair

* changes:
  Fix NPE in the parsing of property file.
This commit is contained in:
Android (Google) Code Review
2009-10-13 14:41:47 -04:00

View File

@@ -605,8 +605,10 @@ public final class SdkManager {
if (m.matches()) {
map.put(m.group(1), m.group(2));
} else {
log.warning("Error parsing '%1$s': \"%2$s\" is not a valid syntax",
buildProp.getAbsolutePath(), line);
if (log != null) {
log.warning("Error parsing '%1$s': \"%2$s\" is not a valid syntax",
buildProp.getAbsolutePath(), line);
}
return null;
}
}