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

Commit 26437709 authored by Pavlin Radoslavov's avatar Pavlin Radoslavov
Browse files

Add a missing null pointer check for AdapterService

Add a missing null pointer check for AdapterService
inside class AdapterServiceBinder when receiving
a Binder request to dump Bluetooth state.

[Cherry-picked from AOSP]

Bug: 27343461
Change-Id: I62e67120f6eb6edb5a93b19a9cca5c09862d6506
parent d030952f
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1414,6 +1414,7 @@ public class AdapterService extends Service {
         public void dump(FileDescriptor fd, String[] args) {
            PrintWriter writer = new PrintWriter(new FileOutputStream(fd));
            AdapterService service = getService();
            if (service == null) return;
            service.dump(fd, writer, args);
         }
    };