From 08761d769764b38e91e80c2d0ad42eb51156f584 Mon Sep 17 00:00:00 2001 From: Satheesh Kannan Date: Tue, 30 Jul 2024 17:29:32 +0530 Subject: [PATCH] chore: address the sonarcloud issue This fix fill eliminate the possibility of returning null pointer/ null reference --- Sources/Classes/RSUtils.m | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Sources/Classes/RSUtils.m b/Sources/Classes/RSUtils.m index c261a479..93d0f884 100644 --- a/Sources/Classes/RSUtils.m +++ b/Sources/Classes/RSUtils.m @@ -283,10 +283,9 @@ +(NSArray*) extractParamFromURL: (NSURL*) deepLinkURL{ NSURLComponents *components = [NSURLComponents componentsWithURL:deepLinkURL resolvingAgainstBaseURL:NO]; // Get the query items - if (components.queryItems) { + if (components.queryItems != nil) { queryItems = components.queryItems; } - } return queryItems; }