Skip to content

Commit

Permalink
Merge pull request #292 from erosb/master
Browse files Browse the repository at this point in the history
Provides "#" string evaluation support for JSON Pointer
  • Loading branch information
stleary authored Oct 8, 2016
2 parents c24be0e + e0616a1 commit 237376e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion JSONPointer.java
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public JSONPointer(String pointer) {
if (pointer == null) {
throw new NullPointerException("pointer cannot be null");
}
if (pointer.isEmpty()) {
if (pointer.isEmpty() || pointer.equals("#")) {
refTokens = Collections.emptyList();
return;
}
Expand Down

0 comments on commit 237376e

Please sign in to comment.