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

Commit 9401f5be authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Ensure IBluetooth#setRemoteAlias does not throw an Exception on null...

Merge "Ensure IBluetooth#setRemoteAlias does not throw an Exception on null input when checking if the input is the empty String." into sc-dev
parents 4aac5329 131b6ab2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1803,7 +1803,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");
            }