Try to find cause for NPE

Bug: 7006995
Change-Id: I12d19fab0264b5d779f24df92274ad879237d254
This commit is contained in:
Marc Blank 2012-08-17 13:03:30 -07:00
parent 11efcb7a1b
commit 296d18c02b

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