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:
Brad Larson
2012-11-13 18:54:02 -06:00
parent cc53d2d83f
commit 5939e2cdeb

View File

@@ -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;