Merge "Try to find cause for NPE" into jb-ub-mail

This commit is contained in:
Marc Blank 2012-08-17 13:42:11 -07:00 committed by Android (Google) Code Review
commit 0bac607eff

View File

@ -2333,10 +2333,12 @@ outer:
// First look at values; this is an override of default behavior
if (values.containsKey(column)) {
String value = values.getAsString(column);
if (value.startsWith("@")) {
if (value == null) {
throw new IllegalArgumentException("Null value in " + column);
} else if (value.startsWith("@")) {
val = value.substring(1) + " AS " + column;
} else {
val = "'" + values.getAsString(column) + "' AS " + column;
val = "'" + value + "' AS " + column;
}
} else {
// Now, get the standard value for the column from our projection map