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

Commit 3d40d1ff authored by Hemant Gupta's avatar Hemant Gupta Committed by Andre Eisenbach
Browse files

Add null checks in PanService

This patch fixes issues identified by static analysis tool
in Bluetooth apk wrt PAN.

Change-Id: Icd65c87450c8a3c3e745b2820bfca1d1f49b98db
parent 5c6add3b
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -226,6 +226,7 @@ public class PanService extends ProfileService {
        private boolean isPanUOn() {
            if(DBG) Log.d(TAG, "isTetheringOn call getPanLocalRoleNative");
            PanService service = getService();
            if (service == null) return false;
            return service.isPanUOn();
        }
        public boolean isTetheringOn() {