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; break;
case PERIOD: case PERIOD:
i++; i++;
if (path.charAt(i) == PERIOD) { if ( i < path.length() && path.charAt(i) == PERIOD) {
//This is a deep scan //This is a deep scan
fragment = ".."; fragment = "..";
i++; i++;

Loading…
Cancel
Save