SetPropertyValue crashes editor

Hi! After I set value of property, script executes fine, but when I leave play mode editor crashes.
What did I missed?
Here is my code:

int64 intFieldValue = 42;
const UNumericProperty* NumProp = Cast<const UNumericProperty>(Property);
NumProp->SetIntPropertyValue(record, intFieldValue);

The value written succsessfuly (I checked it)

int setValue = NumProp->GetSignedIntPropertyValue(record);
TraceText(FString::FromInt(setValue));  // 42

What am I doing wrong?

I have the same problem with 4.15 :frowning:

Not sure if you had the same problem as I have no idea what record is, but I had something similiar.
SetPropertyValue expects a pointer to the variable.
SetPropertyValue_InContainer() expects a pointer to the object which containst the variable. I just needed to use the second instead of the first.