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

Commit 549db1b6 authored by Jay Shrauner's avatar Jay Shrauner Committed by Android Git Automerger
Browse files

am 1c4d6a34: am 8b568d69: am 9e0cb2a3: am 6b70083a: am 44318d37: Merge "Fix...

am 1c4d6a34: am 8b568d69: am 9e0cb2a3: am 6b70083a: am 44318d37: Merge "Fix NPE crash when mPhone is null" into lmp-dev

* commit '1c4d6a34c760bc9bb0bfe9d5c139517325ccad4b':
  Fix NPE crash when mPhone is null
parents 8a4257e1 4c8b1501
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -59,6 +59,10 @@ public abstract class InCallService extends Service {
    private final Handler mHandler = new Handler(Looper.getMainLooper()) {
    private final Handler mHandler = new Handler(Looper.getMainLooper()) {
        @Override
        @Override
        public void handleMessage(Message msg) {
        public void handleMessage(Message msg) {
            if (mPhone == null && msg.what != MSG_SET_IN_CALL_ADAPTER) {
                return;
            }

            switch (msg.what) {
            switch (msg.what) {
                case MSG_SET_IN_CALL_ADAPTER:
                case MSG_SET_IN_CALL_ADAPTER:
                    mPhone = new Phone(new InCallAdapter((IInCallAdapter) msg.obj));
                    mPhone = new Phone(new InCallAdapter((IInCallAdapter) msg.obj));