am bc7c3672: Merge change I6dbcafab into eclair

Merge commit 'bc7c36728c353102ff8b0280b403cf348f47581e' into eclair-plus-aosp

* commit 'bc7c36728c353102ff8b0280b403cf348f47581e':
  Fix NPE in the parsing of property file.
This commit is contained in:
Xavier Ducrohet
2009-10-13 20:47:17 -07:00
committed by Android Git Automerger

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 {
log.warning("Error parsing '%1$s': \"%2$s\" is not a valid syntax", if (log != null) {
buildProp.getAbsolutePath(), line); log.warning("Error parsing '%1$s': \"%2$s\" is not a valid syntax",
buildProp.getAbsolutePath(), line);
}
return null; return null;
} }
} }