npe on register