Skip to content

Commit 237376e

Browse files
authored
Merge pull request stleary#292 from erosb/master
Provides "#" string evaluation support for JSON Pointer
2 parents c24be0e + e0616a1 commit 237376e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

JSONPointer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ public JSONPointer(String pointer) {
138138
if (pointer == null) {
139139
throw new NullPointerException("pointer cannot be null");
140140
}
141-
if (pointer.isEmpty()) {
141+
if (pointer.isEmpty() || pointer.equals("#")) {
142142
refTokens = Collections.emptyList();
143143
return;
144144
}

0 commit comments

Comments
 (0)