fix: Adds more null checks for text definition to prevent NPEs (#936)
This commit is contained in:
parent
04909828c8
commit
2009ac6892
8 changed files with 82 additions and 61 deletions
|
|
@ -286,7 +286,7 @@ namespace Server.Items
|
|||
|
||||
public override void BeginConfirmation(Mobile from)
|
||||
{
|
||||
if (GumpWidth > 0 && GumpHeight > 0 && TitleNumber > 0 && !Message.IsEmpty)
|
||||
if (GumpWidth > 0 && GumpHeight > 0 && TitleNumber > 0 && Message?.IsEmpty == false)
|
||||
{
|
||||
from.CloseGump<WarningGump>();
|
||||
from.SendGump(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue