NPE during authentication #2420