We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1356681 commit f20e309Copy full SHA for f20e309
com.zsmartsystems.zigbee.dongle.ember/src/main/java/com/zsmartsystems/zigbee/dongle/ember/EmberNcp.java
@@ -7,6 +7,8 @@
7
*/
8
package com.zsmartsystems.zigbee.dongle.ember;
9
10
+import static java.util.Objects.requireNonNull;
11
+
12
import java.util.ArrayList;
13
import java.util.Arrays;
14
import java.util.Collection;
@@ -192,6 +194,7 @@ public class EmberNcp {
192
194
* @param protocolHandler the {@link EzspFrameHandler} used for communicating with the NCP
193
195
196
public EmberNcp(EzspProtocolHandler protocolHandler) {
197
+ requireNonNull(protocolHandler, "Protocol handler cannot be null");
198
this.protocolHandler = protocolHandler;
199
}
200
0 commit comments