resolve NPE in SimplePrincipal