Fixed EffectZone cancel task NPE.
This commit is contained in:
@@ -249,9 +249,12 @@ public class EffectZone extends ZoneType
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (getCharactersInside().isEmpty())
|
if (getCharactersInside().isEmpty())
|
||||||
|
{
|
||||||
|
if (_task != null)
|
||||||
{
|
{
|
||||||
_task.cancel(false);
|
_task.cancel(false);
|
||||||
_task = null;
|
_task = null;
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -249,9 +249,12 @@ public class EffectZone extends ZoneType
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (getCharactersInside().isEmpty())
|
if (getCharactersInside().isEmpty())
|
||||||
|
{
|
||||||
|
if (_task != null)
|
||||||
{
|
{
|
||||||
_task.cancel(false);
|
_task.cancel(false);
|
||||||
_task = null;
|
_task = null;
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -249,9 +249,12 @@ public class EffectZone extends ZoneType
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (getCharactersInside().isEmpty())
|
if (getCharactersInside().isEmpty())
|
||||||
|
{
|
||||||
|
if (_task != null)
|
||||||
{
|
{
|
||||||
_task.cancel(false);
|
_task.cancel(false);
|
||||||
_task = null;
|
_task = null;
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -249,9 +249,12 @@ public class EffectZone extends ZoneType
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (getCharactersInside().isEmpty())
|
if (getCharactersInside().isEmpty())
|
||||||
|
{
|
||||||
|
if (_task != null)
|
||||||
{
|
{
|
||||||
_task.cancel(false);
|
_task.cancel(false);
|
||||||
_task = null;
|
_task = null;
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -249,9 +249,12 @@ public class EffectZone extends ZoneType
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (getCharactersInside().isEmpty())
|
if (getCharactersInside().isEmpty())
|
||||||
|
{
|
||||||
|
if (_task != null)
|
||||||
{
|
{
|
||||||
_task.cancel(false);
|
_task.cancel(false);
|
||||||
_task = null;
|
_task = null;
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -249,9 +249,12 @@ public class EffectZone extends ZoneType
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (getCharactersInside().isEmpty())
|
if (getCharactersInside().isEmpty())
|
||||||
|
{
|
||||||
|
if (_task != null)
|
||||||
{
|
{
|
||||||
_task.cancel(false);
|
_task.cancel(false);
|
||||||
_task = null;
|
_task = null;
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -249,9 +249,12 @@ public class EffectZone extends ZoneType
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (getCharactersInside().isEmpty())
|
if (getCharactersInside().isEmpty())
|
||||||
|
{
|
||||||
|
if (_task != null)
|
||||||
{
|
{
|
||||||
_task.cancel(false);
|
_task.cancel(false);
|
||||||
_task = null;
|
_task = null;
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -249,9 +249,12 @@ public class EffectZone extends ZoneType
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (getCharactersInside().isEmpty())
|
if (getCharactersInside().isEmpty())
|
||||||
|
{
|
||||||
|
if (_task != null)
|
||||||
{
|
{
|
||||||
_task.cancel(false);
|
_task.cancel(false);
|
||||||
_task = null;
|
_task = null;
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -249,9 +249,12 @@ public class EffectZone extends ZoneType
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (getCharactersInside().isEmpty())
|
if (getCharactersInside().isEmpty())
|
||||||
|
{
|
||||||
|
if (_task != null)
|
||||||
{
|
{
|
||||||
_task.cancel(false);
|
_task.cancel(false);
|
||||||
_task = null;
|
_task = null;
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -249,9 +249,12 @@ public class EffectZone extends ZoneType
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (getCharactersInside().isEmpty())
|
if (getCharactersInside().isEmpty())
|
||||||
|
{
|
||||||
|
if (_task != null)
|
||||||
{
|
{
|
||||||
_task.cancel(false);
|
_task.cancel(false);
|
||||||
_task = null;
|
_task = null;
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -241,9 +241,12 @@ public class EffectZone extends ZoneType
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (getCharactersInside().isEmpty())
|
if (getCharactersInside().isEmpty())
|
||||||
|
{
|
||||||
|
if (_task != null)
|
||||||
{
|
{
|
||||||
_task.cancel(false);
|
_task.cancel(false);
|
||||||
_task = null;
|
_task = null;
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -247,9 +247,12 @@ public class EffectZone extends ZoneType
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (getCharactersInside().isEmpty())
|
if (getCharactersInside().isEmpty())
|
||||||
|
{
|
||||||
|
if (_task != null)
|
||||||
{
|
{
|
||||||
_task.cancel(false);
|
_task.cancel(false);
|
||||||
_task = null;
|
_task = null;
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -249,9 +249,12 @@ public class EffectZone extends ZoneType
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (getCharactersInside().isEmpty())
|
if (getCharactersInside().isEmpty())
|
||||||
|
{
|
||||||
|
if (_task != null)
|
||||||
{
|
{
|
||||||
_task.cancel(false);
|
_task.cancel(false);
|
||||||
_task = null;
|
_task = null;
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -249,9 +249,12 @@ public class EffectZone extends ZoneType
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (getCharactersInside().isEmpty())
|
if (getCharactersInside().isEmpty())
|
||||||
|
{
|
||||||
|
if (_task != null)
|
||||||
{
|
{
|
||||||
_task.cancel(false);
|
_task.cancel(false);
|
||||||
_task = null;
|
_task = null;
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -249,9 +249,12 @@ public class EffectZone extends ZoneType
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (getCharactersInside().isEmpty())
|
if (getCharactersInside().isEmpty())
|
||||||
|
{
|
||||||
|
if (_task != null)
|
||||||
{
|
{
|
||||||
_task.cancel(false);
|
_task.cancel(false);
|
||||||
_task = null;
|
_task = null;
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -249,9 +249,12 @@ public class EffectZone extends ZoneType
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (getCharactersInside().isEmpty())
|
if (getCharactersInside().isEmpty())
|
||||||
|
{
|
||||||
|
if (_task != null)
|
||||||
{
|
{
|
||||||
_task.cancel(false);
|
_task.cancel(false);
|
||||||
_task = null;
|
_task = null;
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -249,9 +249,12 @@ public class EffectZone extends ZoneType
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (getCharactersInside().isEmpty())
|
if (getCharactersInside().isEmpty())
|
||||||
|
{
|
||||||
|
if (_task != null)
|
||||||
{
|
{
|
||||||
_task.cancel(false);
|
_task.cancel(false);
|
||||||
_task = null;
|
_task = null;
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -249,9 +249,12 @@ public class EffectZone extends ZoneType
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (getCharactersInside().isEmpty())
|
if (getCharactersInside().isEmpty())
|
||||||
|
{
|
||||||
|
if (_task != null)
|
||||||
{
|
{
|
||||||
_task.cancel(false);
|
_task.cancel(false);
|
||||||
_task = null;
|
_task = null;
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -249,9 +249,12 @@ public class EffectZone extends ZoneType
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (getCharactersInside().isEmpty())
|
if (getCharactersInside().isEmpty())
|
||||||
|
{
|
||||||
|
if (_task != null)
|
||||||
{
|
{
|
||||||
_task.cancel(false);
|
_task.cancel(false);
|
||||||
_task = null;
|
_task = null;
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -249,9 +249,12 @@ public class EffectZone extends ZoneType
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (getCharactersInside().isEmpty())
|
if (getCharactersInside().isEmpty())
|
||||||
|
{
|
||||||
|
if (_task != null)
|
||||||
{
|
{
|
||||||
_task.cancel(false);
|
_task.cancel(false);
|
||||||
_task = null;
|
_task = null;
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -249,9 +249,12 @@ public class EffectZone extends ZoneType
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (getCharactersInside().isEmpty())
|
if (getCharactersInside().isEmpty())
|
||||||
|
{
|
||||||
|
if (_task != null)
|
||||||
{
|
{
|
||||||
_task.cancel(false);
|
_task.cancel(false);
|
||||||
_task = null;
|
_task = null;
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -249,9 +249,12 @@ public class EffectZone extends ZoneType
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (getCharactersInside().isEmpty())
|
if (getCharactersInside().isEmpty())
|
||||||
|
{
|
||||||
|
if (_task != null)
|
||||||
{
|
{
|
||||||
_task.cancel(false);
|
_task.cancel(false);
|
||||||
_task = null;
|
_task = null;
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -249,9 +249,12 @@ public class EffectZone extends ZoneType
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (getCharactersInside().isEmpty())
|
if (getCharactersInside().isEmpty())
|
||||||
|
{
|
||||||
|
if (_task != null)
|
||||||
{
|
{
|
||||||
_task.cancel(false);
|
_task.cancel(false);
|
||||||
_task = null;
|
_task = null;
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user