From e22e3d9f6fbf44ca59369babc86b15bfb5820555 Mon Sep 17 00:00:00 2001 From: Sinisha Mihajlovski <9953687+sinisa229@users.noreply.github.com> Date: Thu, 26 Oct 2023 15:56:07 +0100 Subject: [PATCH] Fixing a null pointer exception --- resources/route53-resolver-rules.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/route53-resolver-rules.go b/resources/route53-resolver-rules.go index ad6e0dd00..a274dc858 100644 --- a/resources/route53-resolver-rules.go +++ b/resources/route53-resolver-rules.go @@ -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 "."`) }