Merge "CreateProject: throw RuntimeException when creation failed"

This commit is contained in:
Edwin Kempin 2018-03-26 08:38:16 +00:00 committed by Gerrit Code Review
commit 009ac5341e

View File

@ -14,6 +14,8 @@
package com.google.gerrit.server.restapi.project;
import static com.google.common.base.Preconditions.checkNotNull;
import com.google.common.base.MoreObjects;
import com.google.common.base.Strings;
import com.google.common.collect.Lists;
@ -222,6 +224,8 @@ public class CreateProject implements RestModifyView<TopLevelResource, ProjectIn
}
ProjectState projectState = createProject(args);
checkNotNull(projectState, "failed to create project " + args.getProject().get());
if (input.pluginConfigValues != null) {
ConfigInput in = new ConfigInput();
in.pluginConfigValues = input.pluginConfigValues;