Skip to content

Commit

Permalink
Don't put matchers if we failed to parse (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkienow-r7 authored Feb 23, 2023
2 parents 74af408 + 1879b15 commit 7f65204
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions recog/src/main/java/com/rapid7/recog/parser/RecogParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,9 @@ public RecogMatchers parse(Reader reader, String path, String name) throws Parse

throw new ParseException("Unable to parse fingerprints from Document", exception);
}
if (matchers == null) {
throw new ParseException("Failed to parse file: " + name);
}
return matchers;
}
}

0 comments on commit 7f65204

Please sign in to comment.