Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 456e1a68 authored by László Dávid's avatar László Dávid
Browse files

NullPointerException in UsbStorageActivity and SQLiteSession

FindBugs description:

Null pointer dereference
A null pointer is dereferenced here. 
This will lead to a NullPointerException when the code is executed.

Bug kind and pattern: NP - NP_ALWAYS_NULL

Change-Id: I292a29058de1828f376564188a2e00c61ea194b0
parent 338d39b9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -926,7 +926,7 @@ public final class SQLiteSession {
    }

    private void throwIfNestedTransaction() {
        if (mTransactionStack == null && mTransactionStack.mParent != null) {
        if (mTransactionStack != null && mTransactionStack.mParent != null) {
            throw new IllegalStateException("Cannot perform this operation because "
                    + "a nested transaction is in progress.");
        }
+1 −1
Original line number Diff line number Diff line
@@ -188,7 +188,7 @@ public class UsbStorageActivity extends Activity
        super.onPause();
        
        unregisterReceiver(mUsbStateReceiver);
        if (mStorageManager == null && mStorageListener != null) {
        if (mStorageManager != null && mStorageListener != null) {
            mStorageManager.unregisterListener(mStorageListener);
        }
    }