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()) { 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;
} }
} }