Skip to content
Permalink
Browse files
[Fixed JENKINS-25313] fix null pointer exception when last repo or br…
…anch deleted
  • Loading branch information
MarkEWaite committed Oct 28, 2014
1 parent 0059ed3 commit e4f8cc5da51bf4d5379d26228da8657dc94bc2e7
Showing 1 changed file with 3 additions and 0 deletions.
@@ -205,6 +205,9 @@ public DescribableList<GitSCMExtension, GitSCMExtensionDescriptor> getExtensions

private void updateFromUserData() throws GitException {
// do what newInstance used to do directly from the request data
if (userRemoteConfigs == null) {
return; /* Prevent NPE when no remote config defined */
}
try {
String[] pUrls = new String[userRemoteConfigs.size()];
String[] repoNames = new String[userRemoteConfigs.size()];

0 comments on commit e4f8cc5

Please sign in to comment.