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

Commit f8e9c6ad authored by Kyunglyul Hyun's avatar Kyunglyul Hyun
Browse files

Fix NPE

Flag: EXEMPT, strict null check
Bug: 370880377
Test: atest BluetoothOppBtEnablingActivityTest
Change-Id: I2ec2ca864a87ebe51da9fd8c328faded0b6231a2
parent c1ad6fd0
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -152,9 +152,9 @@ public class BluetoothOppBtEnablingActivity extends AlertActivity {
            };

    private void cancelSendingProgress() {
        BluetoothOppManager mOppManager = BluetoothOppManager.getInstance(this);
        if (mOppManager.mSendingFlag) {
            mOppManager.mSendingFlag = false;
        BluetoothOppManager oppManager = BluetoothOppManager.getInstance(this);
        if (oppManager != null && oppManager.mSendingFlag) {
            oppManager.mSendingFlag = false;
        }
        finish();
    }