java.lang.NullPointerException

Atlassian JIRA | Jeff Turner (Unused account) | 8 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Studio lets a JIRA project be associated with a Subversion subdirectory on this screen: !project_svn.png! Unfortunately there is no validation on what is entered for the project name. If something invalid is entered, then later the SVN permission manager breaks if that project is configured with: {noformat} java.lang.NullPointerException at com.atlassian.studio.repository.svn.SvnRepositoryPermissionsManagerImpl.getSvnPathForJiraProject(SvnRepositoryPermissionsManagerImpl.java:103) at com.atlassian.studio.repository.svn.SvnRepositoryPermissionsManagerImpl.getPermissions(SvnRepositoryPermissionsManagerImpl.java:55) at com.atlassian.studio.repository.DelegatingRepositoryPermissionsManagerImpl$1.call(DelegatingRepositoryPermissionsManagerImpl.java:69) at com.atlassian.studio.repository.DelegatingRepositoryPermissionsManagerImpl$1.call(DelegatingRepositoryPermissionsManagerImpl.java:67) at com.atlassian.studio.repository.DelegatingRepositoryPermissionsManagerImpl$ExecutionQueue.execute(DelegatingRepositoryPermissionsManagerImpl.java:192) at com.atlassian.studio.repository.DelegatingRepositoryPermissionsManagerImpl.getPermissions(DelegatingRepositoryPermissionsManagerImpl.java:66) at com.atlassian.jira.web.action.ProjectRepositoryPermissions.doExecute(ProjectRepositoryPermissions.java:63) 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) {noformat} We should either validate the input better, or print a decent error message instead of a NPE.

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

    Studio lets a JIRA project be associated with a Subversion subdirectory on this screen: !project_svn.png! Unfortunately there is no validation on what is entered for the project name. If something invalid is entered, then later the SVN permission manager breaks if that project is configured with: {noformat} java.lang.NullPointerException at com.atlassian.studio.repository.svn.SvnRepositoryPermissionsManagerImpl.getSvnPathForJiraProject(SvnRepositoryPermissionsManagerImpl.java:103) at com.atlassian.studio.repository.svn.SvnRepositoryPermissionsManagerImpl.getPermissions(SvnRepositoryPermissionsManagerImpl.java:55) at com.atlassian.studio.repository.DelegatingRepositoryPermissionsManagerImpl$1.call(DelegatingRepositoryPermissionsManagerImpl.java:69) at com.atlassian.studio.repository.DelegatingRepositoryPermissionsManagerImpl$1.call(DelegatingRepositoryPermissionsManagerImpl.java:67) at com.atlassian.studio.repository.DelegatingRepositoryPermissionsManagerImpl$ExecutionQueue.execute(DelegatingRepositoryPermissionsManagerImpl.java:192) at com.atlassian.studio.repository.DelegatingRepositoryPermissionsManagerImpl.getPermissions(DelegatingRepositoryPermissionsManagerImpl.java:66) at com.atlassian.jira.web.action.ProjectRepositoryPermissions.doExecute(ProjectRepositoryPermissions.java:63) 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) {noformat} We should either validate the input better, or print a decent error message instead of a NPE.

    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.repository.svn.SvnRepositoryPermissionsManagerImpl.getSvnPathForJiraProject()
    2. com.atlassian.studio
      DelegatingRepositoryPermissionsManagerImpl.getPermissions
      1. com.atlassian.studio.repository.svn.SvnRepositoryPermissionsManagerImpl.getSvnPathForJiraProject(SvnRepositoryPermissionsManagerImpl.java:103)
      2. com.atlassian.studio.repository.svn.SvnRepositoryPermissionsManagerImpl.getPermissions(SvnRepositoryPermissionsManagerImpl.java:55)
      3. com.atlassian.studio.repository.DelegatingRepositoryPermissionsManagerImpl$1.call(DelegatingRepositoryPermissionsManagerImpl.java:69)
      4. com.atlassian.studio.repository.DelegatingRepositoryPermissionsManagerImpl$1.call(DelegatingRepositoryPermissionsManagerImpl.java:67)
      5. com.atlassian.studio.repository.DelegatingRepositoryPermissionsManagerImpl$ExecutionQueue.execute(DelegatingRepositoryPermissionsManagerImpl.java:192)
      6. com.atlassian.studio.repository.DelegatingRepositoryPermissionsManagerImpl.getPermissions(DelegatingRepositoryPermissionsManagerImpl.java:66)
      6 frames
    3. com.atlassian.jira
      ProjectRepositoryPermissions.doExecute
      1. com.atlassian.jira.web.action.ProjectRepositoryPermissions.doExecute(ProjectRepositoryPermissions.java:63)
      1 frame
    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