Add executor null check

Bug: 196043550
Test: presubmit

Change-Id: I9b109094b042dba74c39c16b672abf85e938f73a
This commit is contained in:
Nathalie Le Clair
2021-10-20 07:32:41 +00:00
parent 3a07651d76
commit ba03936518

View File

@@ -63,6 +63,9 @@ public abstract class HdmiClient {
if (listener == null) {
throw new IllegalArgumentException("listener must not be null.");
}
if (executor == null) {
throw new IllegalArgumentException("executor must not be null.");
}
try {
mService.deviceSelect(logicalAddress,
getCallbackWrapper(logicalAddress, executor, listener));