Uploaded image for project: 'nFeed'
  1. NFEED-2514

NullPointerException when adding a nFeed post function without nFeed custom fields in Jira

    Details

    • Type: Bug
    • Status: Closed (View workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.11.2
    • Fix Version/s: 5.11.4
    • Labels:
      None
    • Environment:
      Atlassian

      Description

      How to reproduce:
      Install nFeed and dont add any nFeed custom fields in the Jira.
      Go to post functions, add a nfeed post function. You will see a message "You don't have any nFeed customfields configured yet".

      Click on "Add".

      Current result
      Nullpointer stacktrace in the logs and error post function appear in the interface. We cannot delete it (delete icon is disabled).

      "java.lang.NullPointerException at com.valiantys.jira.plugins.sql.pfunctions.NFeedValueCreation.getSelectedFieldParam(NFeedValueCreation.java:81) at com.valiantys.jira.plugins.sql.pfunctions.NFeedValueCreation.getSetUpParameters(NFeedValueCreation.java:62) at com.valiantys.jira.plugins.sql.pfunctions.NFeedValueCreation.getVelocityParamsForView(NFeedValueCreation.java:53) at com.atlassian.jira.plugin.workflow.AbstractWorkflowPluginFactory.getVelocityParams(AbstractWorkflowPluginFactory.java:32) at com.atlassian.jira.plugin.workflow.WorkflowFunctionModuleDescriptor.getHtml(WorkflowFunctionModuleDescriptor.java:98) at com.atlassian.jira.web.bean.WorkflowDescriptorFormatBean.formatDescriptor(WorkflowDescriptorFormatBean.java:68)"
      

      Expected result
      In the list of postfunctions show the message that the selected CF does not exist.
      User should be able to delete this PF (delete icon is enabled).
      No error stacktrace in the logs.

        Attachments

        1. pf0.png
          7 kB
        2. pf-err.png
          23 kB
        3. pf-res.png
          17 kB

          Issue links

            Activity

              People

              • Assignee:
                nicolas.simon@valiantys.com Nicolas Simon
                Reporter:
                Christophe Promé [Valiantys] Christophe Prome
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: