Skip to content

Commit

Permalink
NRE check LinkData in HandleLinkClickDetour (goatcorp#2112)
Browse files Browse the repository at this point in the history
  • Loading branch information
Haselnussbomber authored Nov 20, 2024
1 parent d19b7d7 commit dbbc230
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dalamud/Game/Gui/ChatGui.cs
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ private uint HandlePrintMessageDetour(RaptureLogModule* manager, XivChatType cha

private void HandleLinkClickDetour(LogViewer* thisPtr, LinkData* linkData)
{
if ((Payload.EmbeddedInfoType)(linkData->LinkType + 1) != Payload.EmbeddedInfoType.DalamudLink)
if (linkData == null || linkData->Payload == null || (Payload.EmbeddedInfoType)(linkData->LinkType + 1) != Payload.EmbeddedInfoType.DalamudLink)
{
this.handleLinkClickHook.Original(thisPtr, linkData);
return;
Expand Down

0 comments on commit dbbc230

Please sign in to comment.