java.lang.NullPointerException

Atlassian JIRA | Kelson Ren | 6 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Jira allows you to accidentally set a username to: "" when creating a user, but throws the following NPE when you try to delete the user: {code} Cause: java.lang.NullPointerException Stack Trace: [hide] java.lang.NullPointerException at com.atlassian.jira.web.action.admin.user.DeleteUser.doValidation(DeleteUser.java:56) at webwork.action.ActionSupport.validate(ActionSupport.java:391) at webwork.action.ActionSupport.execute(ActionSupport.java:162) at com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:82) at webwork.interceptor.DefaultInterceptorChain.proceed(DefaultInterceptorChain.java:39) at webwork.interceptor.NestedInterceptorChain.proceed(NestedInterceptorChain.java:31) at webwork.interceptor.ChainedInterceptor.intercept(ChainedInterceptor.java:16) at webwork.interceptor.DefaultInterceptorChain.proceed(DefaultInterceptorChain.java:35) at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:221) at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:150) at com.atlassian.jira.web.dispatcher.JiraWebworkActionDispatcher.service(JiraWebworkActionDispatcher.java:153) at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) {code} *Note:* When I tried to reproduce in 6.0.3, the stack trace wasn't produced and there were no errors in the logs but I got the "user does not exist, please select a user from the user browser" error in the screenshot.

    Atlassian JIRA | 4 years ago | Taiwo Akindele [Atlassian]
    java.lang.NullPointerException
  2. 0

    Jira allows you to accidentally set a username to: "" when creating a user, but throws the following NPE when you try to delete the user: {code} Cause: java.lang.NullPointerException Stack Trace: [hide] java.lang.NullPointerException at com.atlassian.jira.web.action.admin.user.DeleteUser.doValidation(DeleteUser.java:56) at webwork.action.ActionSupport.validate(ActionSupport.java:391) at webwork.action.ActionSupport.execute(ActionSupport.java:162) at com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:82) at webwork.interceptor.DefaultInterceptorChain.proceed(DefaultInterceptorChain.java:39) at webwork.interceptor.NestedInterceptorChain.proceed(NestedInterceptorChain.java:31) at webwork.interceptor.ChainedInterceptor.intercept(ChainedInterceptor.java:16) at webwork.interceptor.DefaultInterceptorChain.proceed(DefaultInterceptorChain.java:35) at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:221) at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:150) at com.atlassian.jira.web.dispatcher.JiraWebworkActionDispatcher.service(JiraWebworkActionDispatcher.java:153) at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) {code} *Note:* When I tried to reproduce in 6.0.3, the stack trace wasn't produced and there were no errors in the logs but I got the "user does not exist, please select a user from the user browser" error in the screenshot.

    Atlassian JIRA | 4 years ago | Taiwo Akindele [Atlassian]
    java.lang.NullPointerException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at com.atlassian.jira.web.action.admin.user.DeleteUser.doValidation()
    2. com.atlassian.jira
      DeleteUser.doValidation
      1. com.atlassian.jira.web.action.admin.user.DeleteUser.doValidation(DeleteUser.java:49)
      1 frame
    3. webwork.action
      ActionSupport.execute
      1. webwork.action.ActionSupport.validate(ActionSupport.java:391)
      2. webwork.action.ActionSupport.execute(ActionSupport.java:162)
      2 frames
    4. com.atlassian.jira
      JiraActionSupport.execute
      1. com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:53)
      1 frame
    5. webwork.dispatcher
      GenericDispatcher.executeAction
      1. webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:139)
      1 frame