Using 'Capture Mouse' in a Key Event causes a crash

If you’re responding to a key event, i.e. OnKeyDown, inside a User Widget in blueprint and then attempt to use ‘Capture Mouse’ as part of the event reply, you will crash due to an attempt to dereference a null pointer (specifically a non-existent mouse event).

Hello ,

I was able to reproduce this issue on our end. I have written up a report and I have submitted it to the developers for further consideration. I have provided a link to the public tracker. Please feel free to use the link provided for future updates.

Link: Unreal Engine Issues and Bug Tracker (UE-50288)

Make it a great day