|Title|Null Pointer Exception when saving the user profile (JDBC)
|Date|21-Aug-2006 09:43:55 EEST
|Version|2.4.33
|Submitter|Candid Dauth
|[Bug criticality]|MediumBug
|Browser version|*
|[Bug status]|NewBug
|[PageProvider] used|
|Servlet Container|tomcat-5.5
|Operating System|GNU/Linux
|URL|
|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:
{{{
src/com/ecyrd/jspwiki/auth/user/JDBCUserDatabase.java:490
-        if ( !password.equals( existingPassword ) )
+        if ( password != null && !password.equals( existingPassword ) )
}}}