From 63962641940ebf37c8f52c37bd769d44aa1e6b07 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Sun, 3 Dec 2023 20:55:36 +0100 Subject: [PATCH] Fix schem deleted bug Signed-off-by: Lixfel --- .../src/de/steamwar/fightsystem/utils/FightStatistics.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/FightSystem_Core/src/de/steamwar/fightsystem/utils/FightStatistics.java b/FightSystem_Core/src/de/steamwar/fightsystem/utils/FightStatistics.java index 7467e0e..df12a82 100644 --- a/FightSystem_Core/src/de/steamwar/fightsystem/utils/FightStatistics.java +++ b/FightSystem_Core/src/de/steamwar/fightsystem/utils/FightStatistics.java @@ -98,12 +98,12 @@ public class FightStatistics { Integer redSchem; try { blueSchem = SchematicNode.getSchematicNode(Fight.getBlueTeam().getSchematic()).getId(); - } catch (SecurityException e) { + } catch (NullPointerException e) { blueSchem = null; } try { redSchem = SchematicNode.getSchematicNode(Fight.getRedTeam().getSchematic()).getId(); - } catch (SecurityException e) { + } catch (NullPointerException e) { redSchem = null; }