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