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

Commit 131b6ab2 authored by Rahul Sabnis's avatar Rahul Sabnis
Browse files

Ensure IBluetooth#setRemoteAlias does not throw an Exception on null

input when checking if the input is the empty String.

Tag: #feature
Bug: 190425913
Test: Manual
Change-Id: I5f6c9843f6b05b73f3ac7e8f6341daa6ae2464d2
parent 9e032dcf
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1804,7 +1804,7 @@ public class AdapterService extends Service {
            if (!callerIsSystemOrActiveUser(TAG, "setRemoteAlias")) {
                return BluetoothStatusCodes.ERROR_BLUETOOTH_NOT_ALLOWED;
            }
            if (name.isEmpty()) {
            if (name != null && name.isEmpty()) {
                throw new IllegalArgumentException("alias cannot be the empty string");
            }