Skip to content

Commit

Permalink
Added null checking.
Browse files Browse the repository at this point in the history
  • Loading branch information
wadahiro committed Oct 30, 2015
1 parent 35c0b3d commit f976f92
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/jenkins/plugins/git/GitSCMSource.java
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,9 @@ public void setGitTool(String gitTool) {

@Override
public List<GitSCMExtension> getExtensions() {
if (extensions == null) {
extensions = new ArrayList<GitSCMExtension>();
}
return extensions;
}

Expand Down

0 comments on commit f976f92

Please sign in to comment.