summaryrefslogtreecommitdiff
path: root/core/java
diff options
context:
space:
mode:
authorNathalie Le Clair <lcnathalie@google.com>2021-10-20 07:32:41 +0000
committerNathalie Le Clair <lcnathalie@google.com>2021-10-20 07:34:17 +0000
commitba03936518d5700a7721b710c9c318abd7edde6b (patch)
treea20c32dfa2e7aa2d733e3a4470a673d6d365873d /core/java
parent3a07651d76ce69a3292c7193ee724bbea47da623 (diff)
Add executor null check
Bug: 196043550 Test: presubmit Change-Id: I9b109094b042dba74c39c16b672abf85e938f73a
Diffstat (limited to 'core/java')
-rw-r--r--core/java/android/hardware/hdmi/HdmiClient.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/java/android/hardware/hdmi/HdmiClient.java b/core/java/android/hardware/hdmi/HdmiClient.java
index 1a52f11e7c04..cee6a5b16a3c 100644
--- a/core/java/android/hardware/hdmi/HdmiClient.java
+++ b/core/java/android/hardware/hdmi/HdmiClient.java
@@ -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));