File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ - (void)send:(NSDictionary *)data responseCallback:(WVJBResponseCallback)respons
5656}
5757
5858- (void )callHandler : (NSString *)handlerName {
59- [self callHandler: handlerName data: [ NSNull null ] responseCallback: nil ];
59+ [self callHandler: handlerName data: nil responseCallback: nil ];
6060}
6161
6262- (void )callHandler : (NSString *)handlerName data : (id )data {
@@ -92,6 +92,9 @@ - (void)dealloc {
9292}
9393
9494- (void )_sendData : (NSDictionary *)data responseCallback : (WVJBResponseCallback)responseCallback handlerName : (NSString *)handlerName {
95+ if (!data) {
96+ data = (NSDictionary *)[NSNull null ];
97+ }
9598 NSMutableDictionary * message = [NSMutableDictionary dictionaryWithObject: data forKey: @" data" ];
9699
97100 if (responseCallback) {
You can’t perform that action at this time.
0 commit comments