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

Commit 8302f3ec authored by Pavlin Radoslavov's avatar Pavlin Radoslavov Committed by Android Git Automerger
Browse files

am 1c7ea21b: Add a missing check for a null pointer when processing an Intent

* commit '1c7ea21b':
  Add a missing check for a null pointer when processing an Intent
parents bb8b6654 1c7ea21b
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);