Editor crash when instantiating an object from an empty class reference

It crashes on runtime if you try to instantiate an object from a class reference that is empty.

Steps to reproduce:

  1. Create an empty project
  2. Make a BP inheriting from Object (MyCustomObject)
  3. Create a variable: Class Reference of MyCustomObject (defaulting to None)
  4. BeginPlay → Construct Object From Class, inputing the variable and a reference to the level (or anything)
  5. Hit Play

Crashes without any explanation given.

Expected behaviour: It should throw a runtime error.

UE: 4.17.1
OS: Windows 10

This is my first bug report, I hope I got it right :slight_smile: