Skip to content

Commit 409b1fc

Browse files
authored
Fixed rare crash in LogError(..) caused by invalid flow node self or owner (#323)
1 parent c8563ec commit 409b1fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/Flow/Private/Nodes/FlowNodeBase.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -834,7 +834,7 @@ void UFlowNodeBase::LogError(FString Message, const EFlowOnScreenMessageType OnS
834834
StatsSubsystem->AddDisplayDelegate([WeakThis = TWeakObjectPtr<const UFlowNodeBase>(this), Message](FText& OutText, FLinearColor& OutColor)
835835
{
836836
const UFlowNodeBase* ThisPtr = WeakThis.Get();
837-
if (ThisPtr && ThisPtr->GetFlowNodeSelfOrOwner()->GetActivationState() != EFlowNodeState::NeverActivated)
837+
if (ThisPtr && ThisPtr->GetFlowNodeSelfOrOwner() && ThisPtr->GetFlowNodeSelfOrOwner()->GetActivationState() != EFlowNodeState::NeverActivated)
838838
{
839839
OutText = FText::FromString(Message);
840840
OutColor = FLinearColor::Red;

0 commit comments

Comments
 (0)