Fixed probable CharSummonTable NPE.
This commit is contained in:
@@ -207,9 +207,12 @@ public class CharSummonTable
|
|||||||
if (player.hasServitors())
|
if (player.hasServitors())
|
||||||
{
|
{
|
||||||
final Servitor summon = player.getServitors().values().stream().map(s -> ((Servitor) s)).filter(s -> s.getReferenceSkill() == skillId).findAny().orElse(null);
|
final Servitor summon = player.getServitors().values().stream().map(s -> ((Servitor) s)).filter(s -> s.getReferenceSkill() == skillId).findAny().orElse(null);
|
||||||
summon.setCurrentHp(curHp);
|
if (summon != null)
|
||||||
summon.setCurrentMp(curMp);
|
{
|
||||||
summon.setLifeTimeRemaining(time);
|
summon.setCurrentHp(curHp);
|
||||||
|
summon.setCurrentMp(curMp);
|
||||||
|
summon.setLifeTimeRemaining(time);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -207,9 +207,12 @@ public class CharSummonTable
|
|||||||
if (player.hasServitors())
|
if (player.hasServitors())
|
||||||
{
|
{
|
||||||
final Servitor summon = player.getServitors().values().stream().map(s -> ((Servitor) s)).filter(s -> s.getReferenceSkill() == skillId).findAny().orElse(null);
|
final Servitor summon = player.getServitors().values().stream().map(s -> ((Servitor) s)).filter(s -> s.getReferenceSkill() == skillId).findAny().orElse(null);
|
||||||
summon.setCurrentHp(curHp);
|
if (summon != null)
|
||||||
summon.setCurrentMp(curMp);
|
{
|
||||||
summon.setLifeTimeRemaining(time);
|
summon.setCurrentHp(curHp);
|
||||||
|
summon.setCurrentMp(curMp);
|
||||||
|
summon.setLifeTimeRemaining(time);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -207,9 +207,12 @@ public class CharSummonTable
|
|||||||
if (player.hasServitors())
|
if (player.hasServitors())
|
||||||
{
|
{
|
||||||
final Servitor summon = player.getServitors().values().stream().map(s -> ((Servitor) s)).filter(s -> s.getReferenceSkill() == skillId).findAny().orElse(null);
|
final Servitor summon = player.getServitors().values().stream().map(s -> ((Servitor) s)).filter(s -> s.getReferenceSkill() == skillId).findAny().orElse(null);
|
||||||
summon.setCurrentHp(curHp);
|
if (summon != null)
|
||||||
summon.setCurrentMp(curMp);
|
{
|
||||||
summon.setLifeTimeRemaining(time);
|
summon.setCurrentHp(curHp);
|
||||||
|
summon.setCurrentMp(curMp);
|
||||||
|
summon.setLifeTimeRemaining(time);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -207,9 +207,12 @@ public class CharSummonTable
|
|||||||
if (player.hasServitors())
|
if (player.hasServitors())
|
||||||
{
|
{
|
||||||
final Servitor summon = player.getServitors().values().stream().map(s -> ((Servitor) s)).filter(s -> s.getReferenceSkill() == skillId).findAny().orElse(null);
|
final Servitor summon = player.getServitors().values().stream().map(s -> ((Servitor) s)).filter(s -> s.getReferenceSkill() == skillId).findAny().orElse(null);
|
||||||
summon.setCurrentHp(curHp);
|
if (summon != null)
|
||||||
summon.setCurrentMp(curMp);
|
{
|
||||||
summon.setLifeTimeRemaining(time);
|
summon.setCurrentHp(curHp);
|
||||||
|
summon.setCurrentMp(curMp);
|
||||||
|
summon.setLifeTimeRemaining(time);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -207,9 +207,12 @@ public class CharSummonTable
|
|||||||
if (player.hasServitors())
|
if (player.hasServitors())
|
||||||
{
|
{
|
||||||
final Servitor summon = player.getServitors().values().stream().map(s -> ((Servitor) s)).filter(s -> s.getReferenceSkill() == skillId).findAny().orElse(null);
|
final Servitor summon = player.getServitors().values().stream().map(s -> ((Servitor) s)).filter(s -> s.getReferenceSkill() == skillId).findAny().orElse(null);
|
||||||
summon.setCurrentHp(curHp);
|
if (summon != null)
|
||||||
summon.setCurrentMp(curMp);
|
{
|
||||||
summon.setLifeTimeRemaining(time);
|
summon.setCurrentHp(curHp);
|
||||||
|
summon.setCurrentMp(curMp);
|
||||||
|
summon.setLifeTimeRemaining(time);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -207,9 +207,12 @@ public class CharSummonTable
|
|||||||
if (player.hasServitors())
|
if (player.hasServitors())
|
||||||
{
|
{
|
||||||
final Servitor summon = player.getServitors().values().stream().map(s -> ((Servitor) s)).filter(s -> s.getReferenceSkill() == skillId).findAny().orElse(null);
|
final Servitor summon = player.getServitors().values().stream().map(s -> ((Servitor) s)).filter(s -> s.getReferenceSkill() == skillId).findAny().orElse(null);
|
||||||
summon.setCurrentHp(curHp);
|
if (summon != null)
|
||||||
summon.setCurrentMp(curMp);
|
{
|
||||||
summon.setLifeTimeRemaining(time);
|
summon.setCurrentHp(curHp);
|
||||||
|
summon.setCurrentMp(curMp);
|
||||||
|
summon.setLifeTimeRemaining(time);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -207,9 +207,12 @@ public class CharSummonTable
|
|||||||
if (player.hasServitors())
|
if (player.hasServitors())
|
||||||
{
|
{
|
||||||
final Servitor summon = player.getServitors().values().stream().map(s -> ((Servitor) s)).filter(s -> s.getReferenceSkill() == skillId).findAny().orElse(null);
|
final Servitor summon = player.getServitors().values().stream().map(s -> ((Servitor) s)).filter(s -> s.getReferenceSkill() == skillId).findAny().orElse(null);
|
||||||
summon.setCurrentHp(curHp);
|
if (summon != null)
|
||||||
summon.setCurrentMp(curMp);
|
{
|
||||||
summon.setLifeTimeRemaining(time);
|
summon.setCurrentHp(curHp);
|
||||||
|
summon.setCurrentMp(curMp);
|
||||||
|
summon.setLifeTimeRemaining(time);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -207,9 +207,12 @@ public class CharSummonTable
|
|||||||
if (player.hasServitors())
|
if (player.hasServitors())
|
||||||
{
|
{
|
||||||
final Servitor summon = player.getServitors().values().stream().map(s -> ((Servitor) s)).filter(s -> s.getReferenceSkill() == skillId).findAny().orElse(null);
|
final Servitor summon = player.getServitors().values().stream().map(s -> ((Servitor) s)).filter(s -> s.getReferenceSkill() == skillId).findAny().orElse(null);
|
||||||
summon.setCurrentHp(curHp);
|
if (summon != null)
|
||||||
summon.setCurrentMp(curMp);
|
{
|
||||||
summon.setLifeTimeRemaining(time);
|
summon.setCurrentHp(curHp);
|
||||||
|
summon.setCurrentMp(curMp);
|
||||||
|
summon.setLifeTimeRemaining(time);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -207,9 +207,12 @@ public class CharSummonTable
|
|||||||
if (player.hasServitors())
|
if (player.hasServitors())
|
||||||
{
|
{
|
||||||
final Servitor summon = player.getServitors().values().stream().map(s -> ((Servitor) s)).filter(s -> s.getReferenceSkill() == skillId).findAny().orElse(null);
|
final Servitor summon = player.getServitors().values().stream().map(s -> ((Servitor) s)).filter(s -> s.getReferenceSkill() == skillId).findAny().orElse(null);
|
||||||
summon.setCurrentHp(curHp);
|
if (summon != null)
|
||||||
summon.setCurrentMp(curMp);
|
{
|
||||||
summon.setLifeTimeRemaining(time);
|
summon.setCurrentHp(curHp);
|
||||||
|
summon.setCurrentMp(curMp);
|
||||||
|
summon.setLifeTimeRemaining(time);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -207,9 +207,12 @@ public class CharSummonTable
|
|||||||
if (player.hasServitors())
|
if (player.hasServitors())
|
||||||
{
|
{
|
||||||
final Servitor summon = player.getServitors().values().stream().map(s -> ((Servitor) s)).filter(s -> s.getReferenceSkill() == skillId).findAny().orElse(null);
|
final Servitor summon = player.getServitors().values().stream().map(s -> ((Servitor) s)).filter(s -> s.getReferenceSkill() == skillId).findAny().orElse(null);
|
||||||
summon.setCurrentHp(curHp);
|
if (summon != null)
|
||||||
summon.setCurrentMp(curMp);
|
{
|
||||||
summon.setLifeTimeRemaining(time);
|
summon.setCurrentHp(curHp);
|
||||||
|
summon.setCurrentMp(curMp);
|
||||||
|
summon.setLifeTimeRemaining(time);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -207,9 +207,12 @@ public class CharSummonTable
|
|||||||
if (player.hasServitors())
|
if (player.hasServitors())
|
||||||
{
|
{
|
||||||
final Servitor summon = player.getServitors().values().stream().map(s -> ((Servitor) s)).filter(s -> s.getReferenceSkill() == skillId).findAny().orElse(null);
|
final Servitor summon = player.getServitors().values().stream().map(s -> ((Servitor) s)).filter(s -> s.getReferenceSkill() == skillId).findAny().orElse(null);
|
||||||
summon.setCurrentHp(curHp);
|
if (summon != null)
|
||||||
summon.setCurrentMp(curMp);
|
{
|
||||||
summon.setLifeTimeRemaining(time);
|
summon.setCurrentHp(curHp);
|
||||||
|
summon.setCurrentMp(curMp);
|
||||||
|
summon.setLifeTimeRemaining(time);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -207,9 +207,12 @@ public class CharSummonTable
|
|||||||
if (player.hasServitors())
|
if (player.hasServitors())
|
||||||
{
|
{
|
||||||
final Servitor summon = player.getServitors().values().stream().map(s -> ((Servitor) s)).filter(s -> s.getReferenceSkill() == skillId).findAny().orElse(null);
|
final Servitor summon = player.getServitors().values().stream().map(s -> ((Servitor) s)).filter(s -> s.getReferenceSkill() == skillId).findAny().orElse(null);
|
||||||
summon.setCurrentHp(curHp);
|
if (summon != null)
|
||||||
summon.setCurrentMp(curMp);
|
{
|
||||||
summon.setLifeTimeRemaining(time);
|
summon.setCurrentHp(curHp);
|
||||||
|
summon.setCurrentMp(curMp);
|
||||||
|
summon.setLifeTimeRemaining(time);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -207,9 +207,12 @@ public class CharSummonTable
|
|||||||
if (player.hasServitors())
|
if (player.hasServitors())
|
||||||
{
|
{
|
||||||
final Servitor summon = player.getServitors().values().stream().map(s -> ((Servitor) s)).filter(s -> s.getReferenceSkill() == skillId).findAny().orElse(null);
|
final Servitor summon = player.getServitors().values().stream().map(s -> ((Servitor) s)).filter(s -> s.getReferenceSkill() == skillId).findAny().orElse(null);
|
||||||
summon.setCurrentHp(curHp);
|
if (summon != null)
|
||||||
summon.setCurrentMp(curMp);
|
{
|
||||||
summon.setLifeTimeRemaining(time);
|
summon.setCurrentHp(curHp);
|
||||||
|
summon.setCurrentMp(curMp);
|
||||||
|
summon.setLifeTimeRemaining(time);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -207,9 +207,12 @@ public class CharSummonTable
|
|||||||
if (player.hasServitors())
|
if (player.hasServitors())
|
||||||
{
|
{
|
||||||
final Servitor summon = player.getServitors().values().stream().map(s -> ((Servitor) s)).filter(s -> s.getReferenceSkill() == skillId).findAny().orElse(null);
|
final Servitor summon = player.getServitors().values().stream().map(s -> ((Servitor) s)).filter(s -> s.getReferenceSkill() == skillId).findAny().orElse(null);
|
||||||
summon.setCurrentHp(curHp);
|
if (summon != null)
|
||||||
summon.setCurrentMp(curMp);
|
{
|
||||||
summon.setLifeTimeRemaining(time);
|
summon.setCurrentHp(curHp);
|
||||||
|
summon.setCurrentMp(curMp);
|
||||||
|
summon.setLifeTimeRemaining(time);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -207,9 +207,12 @@ public class CharSummonTable
|
|||||||
if (player.hasServitors())
|
if (player.hasServitors())
|
||||||
{
|
{
|
||||||
final Servitor summon = player.getServitors().values().stream().map(s -> ((Servitor) s)).filter(s -> s.getReferenceSkill() == skillId).findAny().orElse(null);
|
final Servitor summon = player.getServitors().values().stream().map(s -> ((Servitor) s)).filter(s -> s.getReferenceSkill() == skillId).findAny().orElse(null);
|
||||||
summon.setCurrentHp(curHp);
|
if (summon != null)
|
||||||
summon.setCurrentMp(curMp);
|
{
|
||||||
summon.setLifeTimeRemaining(time);
|
summon.setCurrentHp(curHp);
|
||||||
|
summon.setCurrentMp(curMp);
|
||||||
|
summon.setLifeTimeRemaining(time);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -207,9 +207,12 @@ public class CharSummonTable
|
|||||||
if (player.hasServitors())
|
if (player.hasServitors())
|
||||||
{
|
{
|
||||||
final Servitor summon = player.getServitors().values().stream().map(s -> ((Servitor) s)).filter(s -> s.getReferenceSkill() == skillId).findAny().orElse(null);
|
final Servitor summon = player.getServitors().values().stream().map(s -> ((Servitor) s)).filter(s -> s.getReferenceSkill() == skillId).findAny().orElse(null);
|
||||||
summon.setCurrentHp(curHp);
|
if (summon != null)
|
||||||
summon.setCurrentMp(curMp);
|
{
|
||||||
summon.setLifeTimeRemaining(time);
|
summon.setCurrentHp(curHp);
|
||||||
|
summon.setCurrentMp(curMp);
|
||||||
|
summon.setLifeTimeRemaining(time);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -207,9 +207,12 @@ public class CharSummonTable
|
|||||||
if (player.hasServitors())
|
if (player.hasServitors())
|
||||||
{
|
{
|
||||||
final Servitor summon = player.getServitors().values().stream().map(s -> ((Servitor) s)).filter(s -> s.getReferenceSkill() == skillId).findAny().orElse(null);
|
final Servitor summon = player.getServitors().values().stream().map(s -> ((Servitor) s)).filter(s -> s.getReferenceSkill() == skillId).findAny().orElse(null);
|
||||||
summon.setCurrentHp(curHp);
|
if (summon != null)
|
||||||
summon.setCurrentMp(curMp);
|
{
|
||||||
summon.setLifeTimeRemaining(time);
|
summon.setCurrentHp(curHp);
|
||||||
|
summon.setCurrentMp(curMp);
|
||||||
|
summon.setLifeTimeRemaining(time);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -207,9 +207,12 @@ public class CharSummonTable
|
|||||||
if (player.hasServitors())
|
if (player.hasServitors())
|
||||||
{
|
{
|
||||||
final Servitor summon = player.getServitors().values().stream().map(s -> ((Servitor) s)).filter(s -> s.getReferenceSkill() == skillId).findAny().orElse(null);
|
final Servitor summon = player.getServitors().values().stream().map(s -> ((Servitor) s)).filter(s -> s.getReferenceSkill() == skillId).findAny().orElse(null);
|
||||||
summon.setCurrentHp(curHp);
|
if (summon != null)
|
||||||
summon.setCurrentMp(curMp);
|
{
|
||||||
summon.setLifeTimeRemaining(time);
|
summon.setCurrentHp(curHp);
|
||||||
|
summon.setCurrentMp(curMp);
|
||||||
|
summon.setLifeTimeRemaining(time);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -207,9 +207,12 @@ public class CharSummonTable
|
|||||||
if (player.hasServitors())
|
if (player.hasServitors())
|
||||||
{
|
{
|
||||||
final Servitor summon = player.getServitors().values().stream().map(s -> ((Servitor) s)).filter(s -> s.getReferenceSkill() == skillId).findAny().orElse(null);
|
final Servitor summon = player.getServitors().values().stream().map(s -> ((Servitor) s)).filter(s -> s.getReferenceSkill() == skillId).findAny().orElse(null);
|
||||||
summon.setCurrentHp(curHp);
|
if (summon != null)
|
||||||
summon.setCurrentMp(curMp);
|
{
|
||||||
summon.setLifeTimeRemaining(time);
|
summon.setCurrentHp(curHp);
|
||||||
|
summon.setCurrentMp(curMp);
|
||||||
|
summon.setLifeTimeRemaining(time);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -207,9 +207,12 @@ public class CharSummonTable
|
|||||||
if (player.hasServitors())
|
if (player.hasServitors())
|
||||||
{
|
{
|
||||||
final Servitor summon = player.getServitors().values().stream().map(s -> ((Servitor) s)).filter(s -> s.getReferenceSkill() == skillId).findAny().orElse(null);
|
final Servitor summon = player.getServitors().values().stream().map(s -> ((Servitor) s)).filter(s -> s.getReferenceSkill() == skillId).findAny().orElse(null);
|
||||||
summon.setCurrentHp(curHp);
|
if (summon != null)
|
||||||
summon.setCurrentMp(curMp);
|
{
|
||||||
summon.setLifeTimeRemaining(time);
|
summon.setCurrentHp(curHp);
|
||||||
|
summon.setCurrentMp(curMp);
|
||||||
|
summon.setLifeTimeRemaining(time);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -207,9 +207,12 @@ public class CharSummonTable
|
|||||||
if (player.hasServitors())
|
if (player.hasServitors())
|
||||||
{
|
{
|
||||||
final Servitor summon = player.getServitors().values().stream().map(s -> ((Servitor) s)).filter(s -> s.getReferenceSkill() == skillId).findAny().orElse(null);
|
final Servitor summon = player.getServitors().values().stream().map(s -> ((Servitor) s)).filter(s -> s.getReferenceSkill() == skillId).findAny().orElse(null);
|
||||||
summon.setCurrentHp(curHp);
|
if (summon != null)
|
||||||
summon.setCurrentMp(curMp);
|
{
|
||||||
summon.setLifeTimeRemaining(time);
|
summon.setCurrentHp(curHp);
|
||||||
|
summon.setCurrentMp(curMp);
|
||||||
|
summon.setLifeTimeRemaining(time);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -202,9 +202,12 @@ public class CharSummonTable
|
|||||||
if (player.hasServitors())
|
if (player.hasServitors())
|
||||||
{
|
{
|
||||||
final Servitor summon = player.getServitors().values().stream().map(s -> ((Servitor) s)).filter(s -> s.getReferenceSkill() == skillId).findAny().orElse(null);
|
final Servitor summon = player.getServitors().values().stream().map(s -> ((Servitor) s)).filter(s -> s.getReferenceSkill() == skillId).findAny().orElse(null);
|
||||||
summon.setCurrentHp(curHp);
|
if (summon != null)
|
||||||
summon.setCurrentMp(curMp);
|
{
|
||||||
summon.setLifeTimeRemaining(time);
|
summon.setCurrentHp(curHp);
|
||||||
|
summon.setCurrentMp(curMp);
|
||||||
|
summon.setLifeTimeRemaining(time);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -202,9 +202,12 @@ public class CharSummonTable
|
|||||||
if (player.hasServitors())
|
if (player.hasServitors())
|
||||||
{
|
{
|
||||||
final Servitor summon = player.getServitors().values().stream().map(s -> ((Servitor) s)).filter(s -> s.getReferenceSkill() == skillId).findAny().orElse(null);
|
final Servitor summon = player.getServitors().values().stream().map(s -> ((Servitor) s)).filter(s -> s.getReferenceSkill() == skillId).findAny().orElse(null);
|
||||||
summon.setCurrentHp(curHp);
|
if (summon != null)
|
||||||
summon.setCurrentMp(curMp);
|
{
|
||||||
summon.setLifeTimeRemaining(time);
|
summon.setCurrentHp(curHp);
|
||||||
|
summon.setCurrentMp(curMp);
|
||||||
|
summon.setLifeTimeRemaining(time);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -202,9 +202,12 @@ public class CharSummonTable
|
|||||||
if (player.hasServitors())
|
if (player.hasServitors())
|
||||||
{
|
{
|
||||||
final Servitor summon = player.getServitors().values().stream().map(s -> ((Servitor) s)).filter(s -> s.getReferenceSkill() == skillId).findAny().orElse(null);
|
final Servitor summon = player.getServitors().values().stream().map(s -> ((Servitor) s)).filter(s -> s.getReferenceSkill() == skillId).findAny().orElse(null);
|
||||||
summon.setCurrentHp(curHp);
|
if (summon != null)
|
||||||
summon.setCurrentMp(curMp);
|
{
|
||||||
summon.setLifeTimeRemaining(time);
|
summon.setCurrentHp(curHp);
|
||||||
|
summon.setCurrentMp(curMp);
|
||||||
|
summon.setLifeTimeRemaining(time);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user