[plugin-x][Umeng] fix not sending Event when paramMap is nil

This commit is contained in:
Peter Young 2013-07-01 16:51:31 +08:00
parent 9697c5af9a
commit cedfd6bbdc
1 changed files with 5 additions and 1 deletions

View File

@ -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