Skip to content

Commit 4dcbd48

Browse files
committed
fix #395 - check for null candidateRule
(cherry picked from commit ebb5e8e)
1 parent 8e022bc commit 4dcbd48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/marklogic/client/impl/JerseyServices.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5115,7 +5115,7 @@ public InputStream match(StructureWriteHandle document,
51155115
MultivaluedMap<String, String> params = new MultivaluedMapImpl();
51165116

51175117
HandleImplementation baseHandle = HandleAccessor.checkHandle(document, "match");
5118-
if (candidateRules.length > 0) {
5118+
if (candidateRules != null) {
51195119
for (String candidateRule : candidateRules) {
51205120
params.add("rule", candidateRule);
51215121
}

0 commit comments

Comments
 (0)