add non null asserts in MagicEvent constructor to help debug NPE