I am getting a first-chance exception on a specific line of code and I have no idea on how to solve it. The class that calls this code inherits from AActor.
Exception Message:
First-chance exception at
0x000007FEE348E470
(UE4Editor-Engine.dll) in
UE4Editor.exe: 0xC0000005: Access
violation reading location
0x00000000000007C0.
Unhandled
exception at 0x000007FEE348E470
(UE4Editor-Engine.dll) in
UE4Editor.exe: 0xC0000005: Access
violation reading location
0x00000000000007C0.
I added the line of code below as a test and it threw the same error. The code is in a method which gets called from my Update method which gets called from my Tick method. Why would be returning null?
Your object probably does not have a World value, it needs to be a World Context object. I’m personnaly using the World reference of the GameInstance class.