This change seems unrelated to the pull request description. You'll get an NPE on the next line anyways but with a less-useful exception message.