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.

  • 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.
    via by Jeff Turner (Unused account),
    • 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)
    No Bugmate found.