Fix nil pointer in resource_aws_codebuild_project (#11740)

This commit is contained in:
Erik Jansson 2017-02-07 11:25:29 +01:00 committed by Paul Stack
parent 244992c1be
commit e3e24f4592
1 changed files with 1 additions and 1 deletions

View File

@ -588,7 +588,7 @@ func sourceAuthToMap(sourceAuth *codebuild.SourceAuth) map[string]interface{} {
auth := map[string]interface{}{}
auth["type"] = *sourceAuth.Type
if sourceAuth.Type != nil {
if sourceAuth.Resource != nil {
auth["resource"] = *sourceAuth.Resource
}