Skip to content

Commit fba8efd

Browse files
committed
fix findbugs warnings
1 parent 7a84cf8 commit fba8efd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/org/owasp/html/CssTokens.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ public boolean hasNext() {
103103
}
104104

105105
public String next() {
106+
if (!hasToken()) { throw new NoSuchElementException(); }
106107
String token = token();
107108
advance();
108109
return token;

0 commit comments

Comments
 (0)