diff --git a/Sources/Classes/RSUtils.m b/Sources/Classes/RSUtils.m index f05ae20b..998ce0f6 100644 --- a/Sources/Classes/RSUtils.m +++ b/Sources/Classes/RSUtils.m @@ -277,7 +277,7 @@ + (NSString*) serializeSpecialFloatingNumber: (NSNumber *) number { } +(NSArray*) extractParamFromURL: (NSURL*) deepLinkURL{ - NSArray *queryItems; + NSMutableArray *queryItems = [NSMutableArray array]; if (deepLinkURL) { // Create NSURLComponents object NSURLComponents *components = [NSURLComponents componentsWithURL:deepLinkURL resolvingAgainstBaseURL:NO]; @@ -286,7 +286,7 @@ +(NSArray*) extractParamFromURL: (NSURL*) deepLinkURL{ queryItems = components.queryItems; } - return queryItems; + return queryItems; } unsigned int MAX_EVENT_SIZE = 32 * 1024; // 32 KB unsigned int MAX_BATCH_SIZE = 500 * 1024; // 500 KB