There's a crash when you try to create an event with nil for the view parameter. This came up while someone was writing a layout test. We just need a NULL check.
Created attachment 3248 [details] patch to add a null check
*** This bug has been marked as a duplicate of 4298 ***
Mass moving XML DOM bugs to the "DOM" Component.