Fix NPE when creating project via command line
If a user created a project on the command line without specifying the contributor agreements flag, it was left as null and threw an NPE when creating a commit. Change-Id: Ic7e972b1f7707a393a7a9011b9cb2832095ed8e0
This commit is contained in:
@@ -66,7 +66,7 @@ final class CreateProjectCommand extends SshCommand {
|
||||
private SubmitType submitType = SubmitType.MERGE_IF_NECESSARY;
|
||||
|
||||
@Option(name = "--contributor-agreements", usage = "if contributor agreement is required")
|
||||
private InheritedBoolean contributorAgreements;
|
||||
private InheritedBoolean contributorAgreements = InheritedBoolean.INHERIT;
|
||||
|
||||
@Option(name = "--signed-off-by", usage = "if signed-off-by is required")
|
||||
private InheritedBoolean signedOffBy = InheritedBoolean.INHERIT;
|
||||
|
Reference in New Issue
Block a user