java.lang.NullPointerException

Atlassian JIRA | Jeff Turner (Unused account) | 8 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

    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

    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