Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-29121

Perforce job in post function throw Nullpointer exception if fisheye plugin is not configured

    XMLWordPrintable

Details

    Description

      If there is a transition with post function to create a Perforce job in the workflow (screen shot post_function.png),when the transaction is triggered, it will show an empty error message in the popup window (popup.png) and throw the follow error message in the stack trace:

      java.lang.NullPointerException
      	at com.atlassian.jirafisheyeplugin.perforce.PerforceManagerImpl.makeJob(PerforceManagerImpl.java:84)
      	at com.atlassian.jirafisheyeplugin.perforce.workflow.CreateJobFunction.execute(CreateJobFunction.java:51)
      	at com.opensymphony.workflow.AbstractWorkflow.executeFunction(AbstractWorkflow.java:1050)
      	at com.opensymphony.workflow.AbstractWorkflow.transitionWorkflow(AbstractWorkflow.java:1446)
      	at com.opensymphony.workflow.AbstractWorkflow.doAction(AbstractWorkflow.java:564)
      	at com.atlassian.jira.workflow.OSWorkflowManager.doWorkflowActionInsideTxn(OSWorkflowManager.java:905)
      	at com.atlassian.jira.workflow.OSWorkflowManager.doWorkflowAction(OSWorkflowManager.java:865)
      	at com.atlassian.jira.bc.issue.DefaultIssueService.transition(DefaultIssueService.java:449)
      	at com.atlassian.jira.web.action.issue.CommentAssignIssue.doExecute(CommentAssignIssue.java:196)
      	at webwork.action.ActionSupport.execute(ActionSupport.java:165)
      

      We should have a clear message to inform the user that the fisheye plugin setting missing instead of throwing an exception with an empty error message.

      Attachments

        1. popup.png
          popup.png
          77 kB
        2. post_function.png
          post_function.png
          33 kB

        Issue Links

          Activity

            People

              Unassigned Unassigned
              yilinmo Yilin (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: