Merge "Potential NPE in SQLiteConnection"

This commit is contained in:
Jeffrey Brown
2013-02-07 04:04:57 +00:00
committed by Gerrit Code Review

View File

@@ -974,7 +974,7 @@ public final class SQLiteConnection implements CancellationSignal.OnCancelListen
if (count != statement.mNumParameters) { if (count != statement.mNumParameters) {
throw new SQLiteBindOrColumnIndexOutOfRangeException( throw new SQLiteBindOrColumnIndexOutOfRangeException(
"Expected " + statement.mNumParameters + " bind arguments but " "Expected " + statement.mNumParameters + " bind arguments but "
+ bindArgs.length + " were provided."); + count + " were provided.");
} }
if (count == 0) { if (count == 0) {
return; return;