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

Commit 109737fa authored by László Dávid's avatar László Dávid Committed by Michael Bestas
Browse files

Fix FindBugs issue

UsbStoreActivity: Null pointer derefence

Change-Id: I9d631c50c30eb98e32cca5a5085513b6904db676
parent e2a600ad
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -186,7 +186,7 @@ public class UsbStorageActivity extends Activity
        super.onPause();

        unregisterReceiver(mUsbStateReceiver);
        if (mStorageManager == null && mStorageListener != null) {
        if (mStorageManager != null && mStorageListener != null) {
            mStorageManager.unregisterListener(mStorageListener);
        }
    }