Skip to content

Commit 49b5d3f

Browse files
noodlzetrustin
andauthored
Update common/src/main/java/com/linecorp/centraldogma/common/PathPattern.java
Co-authored-by: Trustin Lee <[email protected]>
1 parent 7c87563 commit 49b5d3f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

common/src/main/java/com/linecorp/centraldogma/common/PathPattern.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ static PathPattern of(String... patterns) {
6363
* Creates a path pattern with the {@code pathPatterns}.
6464
*/
6565
static PathPattern of(PathPattern... pathPatterns) {
66-
checkArgument(pathPatterns.length > 0, "pathPatterns");
66+
requireNonNull(pathPatterns, "pathPatterns");
67+
checkArgument(pathPatterns.length > 0, "pathPatterns is empty.");
6768
if (pathPatterns.length == 1) {
6869
return pathPatterns[0];
6970
}

0 commit comments

Comments
 (0)