fix(core): Fixes NPE with Town Crier Entries

This commit is contained in:
Kamron Batman 2021-01-20 10:37:23 -08:00 committed by GitHub
parent e869c105d0
commit f3e53bfd7b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -48,7 +48,7 @@ namespace Server.Mobiles
}
}
return Entries.RandomElement();
return Entries?.RandomElement();
}
public TownCrierEntry AddEntry(string[] lines, TimeSpan duration)