-
Notifications
You must be signed in to change notification settings - Fork 61
Open
Description
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
Labels
No labels