-3

error while successful login reporting a error

Source code actual source code

hellow
  • 12,430
  • 7
  • 56
  • 79
  • Please do not post code or errors as screenshots. https://meta.stackoverflow.com/questions/303812/discourage-screenshots-of-code-and-or-errors Edit your post and insert the actual code and error (it is however a good idea to supply an image to clarify something, but not alone without context). – hellow Sep 24 '18 at 06:20

1 Answers1

0

Quoting the documentation

java.lang.String getParameter(java.lang.String name)

Returns the value of a request parameter as a String, or null if the parameter does not exist

As far as I can see, you don't pass a parameter to your page and therefore getParameter returns null and you try to access it without actually checking it.

hellow
  • 12,430
  • 7
  • 56
  • 79