Thon9 / CS481_SeniorDesignProject

0 stars 1 forks source link

NullPointerException error when trying to login or createAccount #11

Closed Thon9 closed 9 years ago

Thon9 commented 9 years ago

When entering the user information to try to login with the user infomation it causes a java.lang.NullPointerException. The error occurs when the controller try to check for the user in the Database in the Login.java servlet.

Same when trying to create the account as it also returns a java.lang.NullPointerException. It seems that the CreateAccount controller is returning a null value as the error occurs when the controller is adding the new input User infomation into the Database in the createAccount.java servlet.

Thon9 commented 9 years ago

Fix the issue by adding DatabaseInitListner Servlet for the FakeDatabase