If you need event.currentTarget, event should never be null, so you should probably remove the " = null" from the function definition.