Skip to content
This repository has been archived by the owner on Apr 6, 2022. It is now read-only.

Commit

Permalink
[JENKINS-14570] Fixed NPE for old builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
uhafner committed Aug 22, 2012
1 parent aa44277 commit 9a8aa76
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/hudson/plugins/warnings/WarningsResult.java
Expand Up @@ -89,7 +89,8 @@ private String getUrl() {
@Override
protected String getSerializationFileName() {
FileChecker fileChecker = new FileChecker(getOwner().getRootDir());
return getFileName(fileChecker, ParserRegistry.getUrl(group));

return getFileName(fileChecker, group == null ? 0 : ParserRegistry.getUrl(group));
}

String getFileName(final FileChecker fileChecker, final int groupUrl) {
Expand Down

0 comments on commit 9a8aa76

Please sign in to comment.