Skip to content

Commit

Permalink
Fixing a null pointer exception in Route53ResolverRule
Browse files Browse the repository at this point in the history
  • Loading branch information
mtovino-nefeli committed Oct 26, 2023
1 parent 357aa44 commit e714e92
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 e714e92

Please sign in to comment.