File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
core/src/main/java/edu/wpi/grip/core/operations/network Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 33import java .util .function .Consumer ;
44
55import static com .google .common .base .Preconditions .checkArgument ;
6+ import static com .google .common .base .Preconditions .checkNotNull ;
67
78/**
89 * Manages the interface between the {@link PublishAnnotatedOperation} and the actual network
@@ -18,7 +19,8 @@ public abstract class NetworkReceiver implements AutoCloseable {
1819 * @param path The path of the object to get
1920 */
2021 public NetworkReceiver (String path ) {
21- checkArgument (!path .isEmpty (), "Name cannot be an empty string" );
22+ checkNotNull (path , "Path cannot be null" );
23+ checkArgument (!path .isEmpty (), "Path cannot be an empty string" );
2224 this .path = path ;
2325 }
2426
You can’t perform that action at this time.
0 commit comments