Skip to content

Commit a1d41bb

Browse files
committed
Solve comments
1 parent daa5110 commit a1d41bb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

core/src/main/java/edu/wpi/grip/core/operations/network/NetworkReceiver.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import java.util.function.Consumer;
44

55
import 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

0 commit comments

Comments
 (0)