wallix / awless

A Mighty CLI for AWS
http://awless.io/
Apache License 2.0
4.97k stars 263 forks source link

panic: runtime error: invalid memory address or nil pointer dereference #245

Open varunchandak opened 5 years ago

varunchandak commented 5 years ago

I am trying to run this command to delete image:

$ awless -p PROFILE -r ap-southeast-1 delete image delete-snapshots=true -f --no-sync id=ami-abcd1234

and I am getting the below error:

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0x1a50998]

goroutine 1 [running]:
github.com/wallix/awless/aws/spec.(*DeleteImage).imageSnapshots(0x0000000000, 0x0000000000, 0xc, 0x0000000000, 0x0000000000, 0x7, 0x0000000000, 0x6)
    /private/tmp/awless-20180621-84171-166hsoe/src/github.com/wallix/awless/aws/spec/image.go:295 +0x168

...