java.lang.NullPointerException

Atlassian JIRA | Jeff Turner (Unused account) | 8 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    If for some reason a user doesn't exist, Studio 1.8.0.1 blows up with: {noformat} java.lang.NullPointerException at com.atlassian.studio.history.JiraBrowseHistoryManager$3.get(JiraBrowseHistoryManager.java:118) at com.atlassian.studio.history.JiraBrowseHistoryManager.visitBrowseHistory(JiraBrowseHistoryManager.java:160) at com.atlassian.studio.history.JiraBrowseHistoryManager.collectHistory(JiraBrowseHistoryManager.java:81) at com.atlassian.studio.history.JiraBrowseHistoryManager.put(JiraBrowseHistoryManager.java:195) at com.atlassian.studio.history.JiraBrowseHistory.addIssue(JiraBrowseHistory.java:59) at com.atlassian.jira.web.action.IssueActionSupport.setCurrentIssue(IssueActionSupport.java:145) at com.atlassian.jira.web.action.issue.AbstractIssueSelectAction.getIssue(AbstractIssueSelectAction.java:81) at com.atlassian.jira.web.action.issue.ViewIssue.doExecute(ViewIssue.java:156) at webwork.action.ActionSupport.execute(ActionSupport.java:153) at com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:54) at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:132) at com.atlassian.jira.web.dispatcher.JiraServletDispatcher.service(JiraServletDispatcher.java:178) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) ... {noformat} The problem is in JiraBrowseHistoryManager.java, where getUserBrowseHistorySettings() calls getUserSettings() and doesn't handle case when it returns null.

    Atlassian JIRA | 8 years ago | Jeff Turner
    java.lang.NullPointerException
  2. 0

    If for some reason a user doesn't exist, Studio 1.8.0.1 blows up with: {noformat} java.lang.NullPointerException at com.atlassian.studio.history.JiraBrowseHistoryManager$3.get(JiraBrowseHistoryManager.java:118) at com.atlassian.studio.history.JiraBrowseHistoryManager.visitBrowseHistory(JiraBrowseHistoryManager.java:160) at com.atlassian.studio.history.JiraBrowseHistoryManager.collectHistory(JiraBrowseHistoryManager.java:81) at com.atlassian.studio.history.JiraBrowseHistoryManager.put(JiraBrowseHistoryManager.java:195) at com.atlassian.studio.history.JiraBrowseHistory.addIssue(JiraBrowseHistory.java:59) at com.atlassian.jira.web.action.IssueActionSupport.setCurrentIssue(IssueActionSupport.java:145) at com.atlassian.jira.web.action.issue.AbstractIssueSelectAction.getIssue(AbstractIssueSelectAction.java:81) at com.atlassian.jira.web.action.issue.ViewIssue.doExecute(ViewIssue.java:156) at webwork.action.ActionSupport.execute(ActionSupport.java:153) at com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:54) at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:132) at com.atlassian.jira.web.dispatcher.JiraServletDispatcher.service(JiraServletDispatcher.java:178) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) ... {noformat} The problem is in JiraBrowseHistoryManager.java, where getUserBrowseHistorySettings() calls getUserSettings() and doesn't handle case when it returns null.

    Atlassian JIRA | 8 years ago | Jeff Turner (Unused account)
    java.lang.NullPointerException
  3. 0

    perl Regular Expression to find Java StackTrace by keyword

    Stack Overflow | 6 years ago | Gofrolist
    java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    openmeetings-user - [openmeetings-user] Install problems on centos 5.2 - msg#00087 - Recent Discussion OSDir.com

    osdir.com | 2 years ago
    java.lang.NullPointerException: null at org.openmeetings.app.hibernate.utils.HibernateUtil.createSession(HibernateUtil.java: 35) [openmeetings.jar:na] at org.openmeetings.app.data.basic.Configurationmanagement.getConfKey(Configurationmanagement.java: 50) [openmeetings.jar:na] at org.openmeetings.servlet.outputhandler.DefaultIndex.handleRequest(DefaultIndex.java: 38) [openmeetings.jar:na] at org.apache.velocity.tools.view.servlet.VelocityViewServlet.doRequest(VelocityViewServlet.java: 541) [velocity-tools-view-1.3.jar:1.3] at org.apache.velocity.tools.view.servlet.VelocityViewServlet.doGet(VelocityViewServlet.java: 507) [velocity-tools-view-1.3.jar:1.3]

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at com.atlassian.studio.history.JiraBrowseHistoryManager$3.get()
    2. com.atlassian.studio
      JiraBrowseHistory.addIssue
      1. com.atlassian.studio.history.JiraBrowseHistoryManager$3.get(JiraBrowseHistoryManager.java:118)
      2. com.atlassian.studio.history.JiraBrowseHistoryManager.visitBrowseHistory(JiraBrowseHistoryManager.java:160)
      3. com.atlassian.studio.history.JiraBrowseHistoryManager.collectHistory(JiraBrowseHistoryManager.java:81)
      4. com.atlassian.studio.history.JiraBrowseHistoryManager.put(JiraBrowseHistoryManager.java:195)
      5. com.atlassian.studio.history.JiraBrowseHistory.addIssue(JiraBrowseHistory.java:59)
      5 frames
    3. com.atlassian.jira
      ViewIssue.doExecute
      1. com.atlassian.jira.web.action.IssueActionSupport.setCurrentIssue(IssueActionSupport.java:145)
      2. com.atlassian.jira.web.action.issue.AbstractIssueSelectAction.getIssue(AbstractIssueSelectAction.java:81)
      3. com.atlassian.jira.web.action.issue.ViewIssue.doExecute(ViewIssue.java:156)
      3 frames
    4. webwork.action
      ActionSupport.execute
      1. webwork.action.ActionSupport.execute(ActionSupport.java:153)
      1 frame
    5. com.atlassian.jira
      JiraActionSupport.execute
      1. com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:54)
      1 frame
    6. webwork.dispatcher
      GenericDispatcher.executeAction
      1. webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:132)
      1 frame
    7. com.atlassian.jira
      JiraServletDispatcher.service
      1. com.atlassian.jira.web.dispatcher.JiraServletDispatcher.service(JiraServletDispatcher.java:178)
      1 frame
    8. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      1 frame