Skip to content

Commit

Permalink
Merge pull request #3247 from baloghadamsoftware/SpotBugsReportConver…
Browse files Browse the repository at this point in the history
…terUpdate

[report-converter][fix] SpotBugs Report Converter Hotfix
  • Loading branch information
csordasmarton authored Mar 30, 2021
2 parents 3298684 + 524546b commit dd93cbc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def __parse_bug(self, bug):
# If <SourceLine> did not contain a 'start' attribute, take the last
# of the events.
if line is None:
line = next(e.line for e in reversed(events) if e.line > 0)
line = next((e.line for e in reversed(events) if e.line > 0), 0)

return SpotBugsMessage(source_path, int(line), col, long_message,
checker_name, report_hash, events)
Expand Down

0 comments on commit dd93cbc

Please sign in to comment.