Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Commit

Permalink
Fixing a null pointer exception
Browse files Browse the repository at this point in the history
  • Loading branch information
sinisa229 authored Oct 26, 2023
1 parent 4d35ec1 commit e22e3d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/route53-resolver-rules.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func resolverRulesToVpcIDs(svc *route53resolver.Route53Resolver) (map[string][]*

// Filter removes resources automatically from being nuked
func (r *Route53ResolverRule) Filter() error {
if *r.domainName == "." {
if r.domainName != nil && *r.domainName == "." {
return fmt.Errorf(`Filtering DomainName "."`)
}

Expand Down

0 comments on commit e22e3d9

Please sign in to comment.