From cedfd6bbdc8bb8853233c15e91145b8f578a56a5 Mon Sep 17 00:00:00 2001 From: Peter Young Date: Mon, 1 Jul 2013 16:51:31 +0800 Subject: [PATCH] [plugin-x][Umeng] fix not sending Event when paramMap is nil --- plugin/plugins/umeng/proj.ios/AnalyticsUmeng.m | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugin/plugins/umeng/proj.ios/AnalyticsUmeng.m b/plugin/plugins/umeng/proj.ios/AnalyticsUmeng.m index 7805586e6b..9260004579 100644 --- a/plugin/plugins/umeng/proj.ios/AnalyticsUmeng.m +++ b/plugin/plugins/umeng/proj.ios/AnalyticsUmeng.m @@ -74,7 +74,11 @@ THE SOFTWARE. - (void) logEvent: (NSString*) eventId withParam:(NSMutableDictionary*) paramMap { OUTPUT_LOG(@"Umeng logEventWithParam invoked"); - [MobClick event:eventId attributes:paramMap]; + if (paramMap != nil) { + [MobClick event:eventId attributes:paramMap]; + } else { + [MobClick event:eventId]; + } } - (void) logTimedEventBegin: (NSString*) eventId