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

Unresolved
ComponentUE - CoreTech - UObject
Affects Versions5.5
Target Fix5.6
CreatedMar 7, 2025
UpdatedMar 13, 2025
View Jira Issue