Skip to content

Nill pointer exception #1

@sh1n0b1

Description

@sh1n0b1

Description of Bug

Nil pointer exception occurs when the API is not available.

Steps to Reproduce

Run the tool and a nil pointer exception occurs when the API is not available.

Additional context

MacOS

Relevant screenshots

...omitted for brevity...
}UnauthorizedException: API is not available in eu-west-3
AccessDeniedException:
{
  RespMetadata: {
    StatusCode: 400,
    RequestID: "9fc00462-5b47-4418-b975-911898757a0a"
  }
}
AccessDeniedException:
{
  RespMetadata: {
    StatusCode: 400,
    RequestID: "94d14317-895d-4666-b9b1-950a365eb358"
  }
}
UnauthorizedException: API is not available in eu-north-1
{

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

goroutine 20 [running]:
github.com/BishopFox/smogcloud/service.GetRoute53(0xc00011e000, 0x1573312, 0x6, 0xc0000a9020)
        /Users/sh1n0b1/go/src/github.com/BishopFox/smogcloud/service/route53.go:48 +0x628
created by main.main
        /Users/sh1n0b1/go/src/github.com/BishopFox/smogcloud/main.go:19 +0x1de

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions