no, you misunderstood that. `null` is allowed as callback for onxxx, but null should not be called when events fired. so you have to check before invoke callback.