java.lang.NullPointerException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • JIRA allows users to be created with line breaks through the JIRA Importers Plugin (and possibly other plugins), but does not handle these users correctly. h3. Steps to replicate: # Import a user, containing a line break in the username, through the CSV importer ([JIM-1001|https://ecosystem.atlassian.net/browse/JIM-1001]); # Try to edit or delete these users. h3. Expected Behavior: The administrator would be able to edit or delete the broken users. h3. Actual Behavior: It is not possible to edit or delete this user. The following appears on the logs: {noformat:borderStyle=dashed| borderColor=#6A8EB3 |bgColor=#F8F8F8} 2013-07-01 17:20:32,465 http-bio-8090-exec-4 ERROR [500ErrorPage.jsp] Exception caught in 500 page null java.lang.NullPointerException at com.atlassian.jira.web.action.admin.user.EditUser.buildNewUser(EditUser.java:106) at com.atlassian.jira.web.action.admin.user.EditUser.doValidation(EditUser.java:57) at webwork.action.ActionSupport.validate(ActionSupport.java:391) ... {noformat} h3. Workaround: # Create a backup of JIRA; # Unzip the backup; # Open the XML backups in a text editor; # Use the 'Find and Replace' feature of the text editor to replace e.g. 'Matheus Fernandes' with 'matheusfernandes'; # Save the files, zip them together again; # And re-import the backup. ^Reference: ['User does not exist' error when trying to use, edit or delete an user|https://confluence.atlassian.com/display/JIRAKB/%27User+does+not+exist%27+error+when+trying+to+use%2C+edit+or+delete+an+user]^ {panel:borderStyle=solid| bgColor=#FFFFDD| borderColor=#F7DF92} (!) *It is highly recommended to perform this in a test instance before doing so in the production instance!* {panel}
    via by Matheus Fernandes,
  • JIRA allows users to be created with line breaks through the JIRA Importers Plugin (and possibly other plugins), but does not handle these users correctly. h3. Steps to replicate: # Import a user, containing a line break in the username, through the CSV importer ([JIM-1001|https://ecosystem.atlassian.net/browse/JIM-1001]); # Try to edit or delete these users. h3. Expected Behavior: The administrator would be able to edit or delete the broken users. h3. Actual Behavior: It is not possible to edit or delete this user. The following appears on the logs: {noformat:borderStyle=dashed| borderColor=#6A8EB3 |bgColor=#F8F8F8} 2013-07-01 17:20:32,465 http-bio-8090-exec-4 ERROR [500ErrorPage.jsp] Exception caught in 500 page null java.lang.NullPointerException at com.atlassian.jira.web.action.admin.user.EditUser.buildNewUser(EditUser.java:106) at com.atlassian.jira.web.action.admin.user.EditUser.doValidation(EditUser.java:57) at webwork.action.ActionSupport.validate(ActionSupport.java:391) ... {noformat} h3. Workaround: # Create a backup of JIRA; # Unzip the backup; # Open the XML backups in a text editor; # Use the 'Find and Replace' feature of the text editor to replace e.g. 'Matheus Fernandes' with 'matheusfernandes'; # Save the files, zip them together again; # And re-import the backup. ^Reference: ['User does not exist' error when trying to use, edit or delete an user|https://confluence.atlassian.com/display/JIRAKB/%27User+does+not+exist%27+error+when+trying+to+use%2C+edit+or+delete+an+user]^ {panel:borderStyle=solid| bgColor=#FFFFDD| borderColor=#F7DF92} (!) *It is highly recommended to perform this in a test instance before doing so in the production instance!* {panel}
    via by Matheus Fernandes,
    • java.lang.NullPointerException at com.atlassian.jira.web.action.admin.user.EditUser.buildNewUser(EditUser.java:106) at com.atlassian.jira.web.action.admin.user.EditUser.doValidation(EditUser.java:57) at webwork.action.ActionSupport.validate(ActionSupport.java:391)
    No Bugmate found.