Skip to content

Commit

Permalink
JENKINS-33166 check for nonnull url inside constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
escoem committed May 13, 2016
1 parent 138d215 commit b7d807c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/hudson/plugins/jira/JiraSite.java
Expand Up @@ -165,7 +165,7 @@ public class JiraSite extends AbstractDescribableImpl<JiraSite> {
@DataBoundConstructor
public JiraSite(URL url, URL alternativeUrl, String userName, String password, boolean supportsWikiStyleComment, boolean recordScmChanges, String userPattern,
boolean updateJiraIssueForAllStatus, String groupVisibility, String roleVisibility, boolean useHTTPAuth) {
if (!url.toExternalForm().endsWith("/"))
if (url != null && !url.toExternalForm().endsWith("/"))
try {
url = new URL(url.toExternalForm() + "/");
} catch (MalformedURLException e) {
Expand Down

0 comments on commit b7d807c

Please sign in to comment.