Skip to content
Snippets Groups Projects
Commit a36bae6e authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "CEC: Do not allow null callback"

parents 494a1ed6 d9b319e0
No related branches found
No related tags found
No related merge requests found
......@@ -122,6 +122,9 @@ public final class HdmiPlaybackClient extends HdmiClient {
}
private IHdmiControlCallback getCallbackWrapper(final OneTouchPlayCallback callback) {
if (callback == null) {
throw new IllegalArgumentException("OneTouchPlayCallback cannot be null.");
}
return new IHdmiControlCallback.Stub() {
@Override
public void onComplete(int result) {
......@@ -131,6 +134,9 @@ public final class HdmiPlaybackClient extends HdmiClient {
}
private IHdmiControlCallback getCallbackWrapper(final DisplayStatusCallback callback) {
if (callback == null) {
throw new IllegalArgumentException("DisplayStatusCallback cannot be null.");
}
return new IHdmiControlCallback.Stub() {
@Override
public void onComplete(int status) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment