[ BUG? ] - Soft Pointer to Data Asset causes Access violation?

I made an instance of a Data Asset in my content browser and would like c++ to access data from it by referencing this data asset in custom project settings. (using a property with Config specifier)

image



Unfortunately, using UObject* in config is not allowed.
So I’ve tried another method:



This allows me to configure the appropriate data asset from my content browser:


. . .but will cause an Access violation reading location if the variable is even accessed (even if no methods of it are used)




I’m undoubtedly missing something obvious, but I cannot figure out what is causing this error, it errors out on nothing more than assigning this value to a different field, which seems to work fine with any other data type.



[Edit]
I’ve now also tried this using TSoftObjectPtr which resulted in the exact same issue. ‘Access violation reading location’,
Hovering the fields in Visual Studio shows they are not null and contain the data they’re supposed to.
Is this a bug?

This is one of two reasons, either you are implementing all this in the class constructor, which you do not need to do, or your DataAsset is not initialized