Browse Source

Merge pull request #74 from DALDEI/master

Fix array out of bounds exception on '$.' path expression
pull/109/head
kallestenflo 9 years ago
parent
commit
7ee88cbed0
  1. 2
      json-path/src/main/java/com/jayway/jsonpath/internal/PathCompiler.java

2
json-path/src/main/java/com/jayway/jsonpath/internal/PathCompiler.java

@ -109,7 +109,7 @@ public class PathCompiler {
break;
case PERIOD:
i++;
if (path.charAt(i) == PERIOD) {
if ( i < path.length() && path.charAt(i) == PERIOD) {
//This is a deep scan
fragment = "..";
i++;

Loading…
Cancel
Save