Skip to content

Commit

Permalink
Fixed silly NPE with null values
Browse files Browse the repository at this point in the history
  • Loading branch information
Arraying committed Dec 1, 2018
1 parent 09057ed commit 3e03785
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>de.arraying</groupId>
<artifactId>Kotys</artifactId>
<version>0.5.0</version>
<version>0.5.1</version>
<build>
<plugins>
<plugin>
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/de/arraying/kotys/JSONParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,9 @@ private int nextBracket(int current, JSONTokenizer.Token[] tokens, boolean array
int closed = 0;
for(int i = current; i < tokens.length; i++) {
JSONTokenizer.Token token = tokens[i];
if(token.getToken() == null) {
continue;
}
if(token.getToken().equals(array ? "[" : "{")) {
open++;
}
Expand Down

0 comments on commit 3e03785

Please sign in to comment.