From df9c1f3aa54792cc65f95ddff8e36a34a9dcdda1 Mon Sep 17 00:00:00 2001 From: Marc Blank Date: Mon, 3 Sep 2012 14:14:53 -0700 Subject: [PATCH] Allow NULL values in genSelect Bug: 7050016 Change-Id: Ia70e2312e37e8a5adae62d045878a079e9195d00 --- src/com/android/email/provider/EmailProvider.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/android/email/provider/EmailProvider.java b/src/com/android/email/provider/EmailProvider.java index a235b39c0..138e4a104 100644 --- a/src/com/android/email/provider/EmailProvider.java +++ b/src/com/android/email/provider/EmailProvider.java @@ -2376,7 +2376,7 @@ outer: if (values.containsKey(column)) { String value = values.getAsString(column); if (value == null) { - throw new IllegalArgumentException("Null value in " + column); + val = "NULL AS " + column; } else if (value.startsWith("@")) { val = value.substring(1) + " AS " + column; } else {