Good Morning,
Take a look at line 369 of Core_Run and see what is going on there, maybe set a breakpoint shortly before and then step through the code. It's hard to troubleshoot from afar as I don't know your code and how the library may have been modified (i.e. if your line 369 is the same as my line 369). In any case, some element that shouldn't be null is null.
Best,
Johannes