|Title|Null Pointer Exception when saving the user profile (JDBC)
|Date|21-Aug-2006 09:43:55 EEST
|Submitter|Candid Dauth
|[Bug criticality]|MediumBug
|Browser version|*
|[Bug status]|NewBug
|[PageProvider] used|
|Servlet Container|tomcat-5.5
|Operating System|GNU/Linux
|Java version|sun-jdk1.5.0_07

When using JDBCUserDatabase, a null pointer exception is thrown when I save a user profile that is not in the database yet.

I fixed it this way:
-        if ( !password.equals( existingPassword ) )
+        if ( password != null && !password.equals( existingPassword ) )