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

Commit 1c7ea21b authored by Pavlin Radoslavov's avatar Pavlin Radoslavov
Browse files

Add a missing check for a null pointer when processing an Intent

This fixes Low severity vulnerability in Bluetooth: Denial of Service

Bug: 20952998
Change-Id: Ifec45568f0e7e158b96a2557a7e1eefcee5bb6f5
parent 92f9c256
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -236,6 +236,7 @@ public class BluetoothPbapService extends Service {
    // process the intent from receiver
    private void parseIntent(final Intent intent) {
        String action = intent.getStringExtra("action");
        if (action == null) return;             // Nothing to do
        if (VERBOSE) Log.v(TAG, "action: " + action);

        int state = intent.getIntExtra(BluetoothAdapter.EXTRA_STATE, BluetoothAdapter.ERROR);