Why "else ..."? Why even check if it is null? The handler will probably throw an exception anyway in this case.