diff --git a/JSONPointer.java b/JSONPointer.java index 563047b74..82de7f933 100644 --- a/JSONPointer.java +++ b/JSONPointer.java @@ -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; }