added code to not crash when reading event files
Merge branch 'master' into bringASTInferencingCode_removeListeners