Fixed EffectZone cancel task NPE.

This commit is contained in:
MobiusDevelopment
2021-09-25 06:45:49 +00:00
parent 5a89263367
commit fce88c2895
23 changed files with 115 additions and 46 deletions

View File

@@ -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;
} }

View File

@@ -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;
} }

View File

@@ -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;
} }

View File

@@ -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;
} }

View File

@@ -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;
} }

View File

@@ -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;
} }

View File

@@ -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;
} }

View File

@@ -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;
} }

View File

@@ -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;
} }

View File

@@ -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;
} }

View File

@@ -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;
} }

View File

@@ -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;
} }

View File

@@ -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;
} }

View File

@@ -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;
} }

View File

@@ -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;
} }

View File

@@ -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;
} }

View File

@@ -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;
} }

View File

@@ -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;
} }

View File

@@ -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;
} }

View File

@@ -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;
} }

View File

@@ -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;
} }

View File

@@ -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;
} }

View File

@@ -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;
} }