Skip to content

EXC_BAD_ACCESS causing crash on iOS #20

@Justin-Credible

Description

@Justin-Credible

Sometimes when calling hide() after a indicator has already been hidden an EXC_BAD_ACCESS can occur.

It occurs on line 402 on the first if block check of the hide method:

- (void)hide:(CDVInvokedUrlCommand*)command
{
    if (!self.progressIndicator) {
        CDVPluginResult* pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR];
        [self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId];
        return;
    }
    [self.progressIndicator hide:YES];
    CDVPluginResult* pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageAsString:@""];
    [self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId];
}

It would be nice if multiple calls to hide() didn't cause a crash.

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