TitleNull Pointer Exception when saving the user profile (JDBC)
Date21-Aug-2006 09:43:55 EEST
Version2.4.33
SubmitterCandid Dauth
Bug criticalityMediumBug
Browser version*
Bug statusNewBug
PageProvider used
Servlet Containertomcat-5.5
Operating SystemGNU/Linux
URL
Java versionsun-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 ) )

Add new attachment

Only authorized users are allowed to upload new attachments.
« This page (revision-1) was last changed on 21-Aug-2006 09:43 by Candid Dauth