Skip to content

when the webview evaluete javascript fail will cause crash #183

Closed
@zhipcui

Description

@zhipcui
  • (void)WKFlushMessageQueue {
    [_webView evaluateJavaScript:[_base webViewJavascriptFetchQueyCommand] completionHandler:^(NSString* result, NSError* error) {
    [_base flushMessageQueue:result];
    }];
    }

The reason:
if the result == nil, then flushMessageQueue try to _deserializeMessageJSON a nill object.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions