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

Commit e88b3bf7 authored by chenlei7's avatar chenlei7
Browse files

Fix NPE when receives null action.



Bug:119568243

Test: bug(119568243) comment #1.

Change-Id: I355b3ed971d1fdeb4951e822e0d418fbebdde854
Signed-off-by: default avatarchenlei7 <chenlei7@xiaomi.com>
parent 38b40fbe
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -76,6 +76,12 @@ public class BluetoothOppLauncherActivity extends Activity {
        Intent intent = getIntent();
        String action = intent.getAction();

        if (action == null) {
            Log.w(TAG, "action is null");
            finish();
            return;
        }

        if (action.equals(Intent.ACTION_SEND) || action.equals(Intent.ACTION_SEND_MULTIPLE)) {
            //Check if Bluetooth is available in the beginning instead of at the end
            if (!isBluetoothAllowed()) {