diff --git a/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/handlers/actionshifthandlers/L2NpcActionShift.java b/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/handlers/actionshifthandlers/L2NpcActionShift.java index e008602fc2..6b02816d9e 100644 --- a/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/handlers/actionshifthandlers/L2NpcActionShift.java +++ b/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/handlers/actionshifthandlers/L2NpcActionShift.java @@ -115,7 +115,7 @@ public class L2NpcActionShift implements IActionShiftHandler { final String fileName = template.getSpawnTemplate().getFile().getAbsolutePath().substring(Config.DATAPACK_ROOT.getAbsolutePath().length() + 1).replace('\\', '/'); html.replace("%spawnfile%", fileName); - html.replace("%spawnname%", template.getSpawnTemplate().getName()); + html.replace("%spawnname%", String.valueOf(template.getSpawnTemplate().getName())); // used String.valueOf because it can be null html.replace("%spawngroup%", String.valueOf(template.getGroup().getName())); // used String.valueOf because it can be null if (template.getSpawnTemplate().getAI() != null) { diff --git a/L2J_Mobius_2.5_Underground/dist/game/data/scripts/handlers/actionshifthandlers/L2NpcActionShift.java b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/handlers/actionshifthandlers/L2NpcActionShift.java index e008602fc2..6b02816d9e 100644 --- a/L2J_Mobius_2.5_Underground/dist/game/data/scripts/handlers/actionshifthandlers/L2NpcActionShift.java +++ b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/handlers/actionshifthandlers/L2NpcActionShift.java @@ -115,7 +115,7 @@ public class L2NpcActionShift implements IActionShiftHandler { final String fileName = template.getSpawnTemplate().getFile().getAbsolutePath().substring(Config.DATAPACK_ROOT.getAbsolutePath().length() + 1).replace('\\', '/'); html.replace("%spawnfile%", fileName); - html.replace("%spawnname%", template.getSpawnTemplate().getName()); + html.replace("%spawnname%", String.valueOf(template.getSpawnTemplate().getName())); // used String.valueOf because it can be null html.replace("%spawngroup%", String.valueOf(template.getGroup().getName())); // used String.valueOf because it can be null if (template.getSpawnTemplate().getAI() != null) { diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/handlers/actionshifthandlers/L2NpcActionShift.java b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/handlers/actionshifthandlers/L2NpcActionShift.java index e008602fc2..6b02816d9e 100644 --- a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/handlers/actionshifthandlers/L2NpcActionShift.java +++ b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/handlers/actionshifthandlers/L2NpcActionShift.java @@ -115,7 +115,7 @@ public class L2NpcActionShift implements IActionShiftHandler { final String fileName = template.getSpawnTemplate().getFile().getAbsolutePath().substring(Config.DATAPACK_ROOT.getAbsolutePath().length() + 1).replace('\\', '/'); html.replace("%spawnfile%", fileName); - html.replace("%spawnname%", template.getSpawnTemplate().getName()); + html.replace("%spawnname%", String.valueOf(template.getSpawnTemplate().getName())); // used String.valueOf because it can be null html.replace("%spawngroup%", String.valueOf(template.getGroup().getName())); // used String.valueOf because it can be null if (template.getSpawnTemplate().getAI() != null) { diff --git a/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/actionshifthandlers/L2NpcActionShift.java b/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/actionshifthandlers/L2NpcActionShift.java index e008602fc2..6b02816d9e 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/actionshifthandlers/L2NpcActionShift.java +++ b/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/actionshifthandlers/L2NpcActionShift.java @@ -115,7 +115,7 @@ public class L2NpcActionShift implements IActionShiftHandler { final String fileName = template.getSpawnTemplate().getFile().getAbsolutePath().substring(Config.DATAPACK_ROOT.getAbsolutePath().length() + 1).replace('\\', '/'); html.replace("%spawnfile%", fileName); - html.replace("%spawnname%", template.getSpawnTemplate().getName()); + html.replace("%spawnname%", String.valueOf(template.getSpawnTemplate().getName())); // used String.valueOf because it can be null html.replace("%spawngroup%", String.valueOf(template.getGroup().getName())); // used String.valueOf because it can be null if (template.getSpawnTemplate().getAI() != null) {