Project

General

Profile

Defect #749

Error when disposing busy plugin in a web-client

Added by Danny Richardson over 10 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Normal
Start date:
10/31/2013
Due date:
% Done:

0%

Estimated time:
Browser (if web client):
chrome

Description

There is a a little bug when disposing de plugin within a web-client. The should be checked if the provider is initialized.

Regards,
Danny Richardson

Fix/Patch:

Index: src/com/servoyguy/plugins/busy/BusyScriptObject.java ===================================================================
--- src/com/servoyguy/plugins/busy/BusyScriptObject.java (revision 51)
+++ src/com/servoyguy/plugins/busy/BusyScriptObject.java (working copy)
@ -215,9 +215,10 @
}

public void dispose() {
- provider.dispose();
+ if (provider != null) {
+ provider.dispose();
+ }
provider = null;
- //callBackFunction = null;
application = null;
}

History

#1

Updated by Patrick Talbot over 10 years ago

  • Status changed from New to In Progress

Ah! Yes, I know about this one. I forgot to add the null check.
Thanks for the patch, will integrate asap.

#2

Updated by Patrick Talbot over 10 years ago

  • Status changed from In Progress to Closed

Also available in: Atom PDF