Description

Commit 6448c6f (https://github.com/EpicGames/UnrealEngine/commit/6448c6f6d1de1e9fac9614248e06ba06b837814d) introduced inconsistent behavior for TFieldPath and nullptr comparison, depending on constness of the TFieldPath reference.

Steps to Reproduce

Run the following code within unreal, notice that constTest and nonConstTest have different results:

TFieldPath<FProperty> tempVar

{ TEXT("TempStr") }

;
bool constTest = (const TFieldPath<FProperty>&)tempVar == nullptr;
bool nonConstTest = tempVar == nullptr;
ensure(constTest == nonConstTest);

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-254385 in the post.

1
Login to Vote

Fixed
ComponentUE - CoreTech - UObject
Affects Versions5.5
Target Fix5.8
Fix Commit45993645
CreatedMar 7, 2025
ResolvedSep 19, 2025
UpdatedSep 20, 2025
View Jira Issue