Skip to content

Commit

Permalink
chore: address the sonarcloud issue
Browse files Browse the repository at this point in the history
This fix fill eliminate the possibility of returning null pointer/ null reference
  • Loading branch information
SKannaniOS committed Jul 30, 2024
1 parent 1179b6f commit 26c8269
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Sources/Classes/RSUtils.m
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,9 @@ +(NSArray*) extractParamFromURL: (NSURL*) deepLinkURL{
NSURLComponents *components = [NSURLComponents componentsWithURL:deepLinkURL resolvingAgainstBaseURL:NO];

// Get the query items
queryItems = components.queryItems;
if (components.queryItems) {
queryItems = components.queryItems;
}

}
return queryItems;
Expand Down

0 comments on commit 26c8269

Please sign in to comment.