AIRApplication: check for null with Application.current
This commit is contained in:
@@ -21,7 +21,7 @@ class AIRApplication extends FlashApplication
|
|||||||
{
|
{
|
||||||
System.exit(0);
|
System.exit(0);
|
||||||
|
|
||||||
if (Application.current.onExit.canceled)
|
if (Application.current != null && Application.current.onExit.canceled)
|
||||||
{
|
{
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
event.stopImmediatePropagation();
|
event.stopImmediatePropagation();
|
||||||
|
|||||||
Reference in New Issue
Block a user