Skip to content

Commit

Permalink
Merge pull request #190 from moznion/fix_nil_pointer_derefer_on_init
Browse files Browse the repository at this point in the history
  • Loading branch information
fujiwara authored Nov 11, 2021
2 parents 4be2bb3 + 5ece130 commit fc518a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion init.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func (app *App) Init(opt InitOption) error {
return err
}
}
if aws.StringValue(res.Configuration.PackageType) == "Image" {
if res.Configuration != nil && aws.StringValue(res.Configuration.PackageType) == "Image" {
log.Printf("[debug] Image URL=%s", *res.Code.ImageUri)
fn.PackageType = aws.String("Image")
fn.Code = &lambda.FunctionCode{
Expand Down

0 comments on commit fc518a2

Please sign in to comment.