mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-11-28 13:36:33 +01:00
Fix possible NPE; resolves #286
This commit is contained in:
parent
27307471e3
commit
7c736d8c90
@ -451,6 +451,9 @@ public class DGroup {
|
|||||||
* @return the dungeonName
|
* @return the dungeonName
|
||||||
*/
|
*/
|
||||||
public String getDungeonName() {
|
public String getDungeonName() {
|
||||||
|
if (dungeon == null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
return dungeon.getName();
|
return dungeon.getName();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user