Merge "NullPointerException in SQLiteSession"

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

View File

@@ -926,7 +926,7 @@ public final class SQLiteSession {
} }
private void throwIfNestedTransaction() { private void throwIfNestedTransaction() {
if (mTransactionStack == null && mTransactionStack.mParent != null) { if (hasNestedTransaction()) {
throw new IllegalStateException("Cannot perform this operation because " throw new IllegalStateException("Cannot perform this operation because "
+ "a nested transaction is in progress."); + "a nested transaction is in progress.");
} }