diff --git a/forge-gui/src/main/java/forge/gamemodes/quest/QuestWorld.java b/forge-gui/src/main/java/forge/gamemodes/quest/QuestWorld.java index 6915eaa7d6a..18f6e19d93f 100644 --- a/forge-gui/src/main/java/forge/gamemodes/quest/QuestWorld.java +++ b/forge-gui/src/main/java/forge/gamemodes/quest/QuestWorld.java @@ -231,15 +231,10 @@ public class QuestWorld implements Comparable{ */ @Override public int compareTo(QuestWorld other) { - if (null == other) { + if (null == other) return 1; - } - if (name == other.name) { - return 0; - } - if (null == name) { - return -1; - } + if (this.name == null) + return -1; // dummy, no format! return name.compareTo(other.name); }