Skip to content

Commit

Permalink
[#7] Avoid NPE in getIssueSummary
Browse files Browse the repository at this point in the history
issue.getUriToProblem() might be null when issues are created from
runtime exceptions
  • Loading branch information
Karsten Thoms committed Dec 17, 2018
1 parent 7dec717 commit 141b981
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ public static void dumpIssue(final Resource resource, final Issue issue) {
public static String getIssueSummary(final Resource resource,
final Issue issue) {
boolean validFragment = true;
if ("//".equals(issue.getUriToProblem().fragment())) {
if (issue.getUriToProblem() == null || "//".equals(issue.getUriToProblem().fragment())) {
validFragment = false;
}

Expand Down

0 comments on commit 141b981

Please sign in to comment.