NullPointerException at com.fca.jira.plugins.workflowToolbox.shared.GeneralizedField.processValueToBeAssigned

I am using the "Copy a parsed text to a field" post-function of the JIRA Workflow Toolbox plugin in one of my workflows. The target field is a custom field of type Label. 

However the transition fails with a NullPointerException:

2015-01-18 15:55:56,824 http-apr-8081-exec-21 ERROR admin 955x990x1 eu5bu6 109.189.143.99,192.168.105.7 /secure/CommentAssignIssue.jspa [atlassian.jira.workflow.OSWorkflowManager] Caught exception while attempting to perform action 5 from workflow 33703 on issue 'VE-15'
java.lang.NullPointerException
    at java.util.StringTokenizer.<init>(Unknown Source)
    at java.util.StringTokenizer.<init>(Unknown Source)
    at com.fca.jira.plugins.workflowToolbox.shared.GeneralizedField.processValueToBeAssigned(GeneralizedField.java:3468)
    at com.fca.jira.plugins.workflowToolbox.shared.GeneralizedField.setValue(GeneralizedField.java:2337)
    at com.fca.jira.plugins.workflowToolbox.shared.GeneralizedField.setValue(GeneralizedField.java:2290)
    at com.fca.jira.plugins.workflowToolbox.CopyParsedTextFunction.writeParsedText(CopyParsedTextFunction.java:89)
    at com.fca.jira.plugins.workflowToolbox.CopyParsedTextFunction.execute(CopyParsedTextFunction.java:71)
    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:957)
    at com.atlassian.jira.workflow.OSWorkflowManager.doWorkflowAction(OSWorkflowManager.java:912)
    at com.atlassian.jira.bc.issue.DefaultIssueService.transition(DefaultIssueService.java:450)
    at com.atlassian.jira.web.action.issue.CommentAssignIssue.doExecute(CommentAssignIssue.java:192) <+1> (ActionSupport.java:165)

 

If I change my target field to be the system JIRA Labels field (00080) instead of my custom field, the transition is successful, and the Labels field is set correctly. 

Any ideas as to what I am doing wrong?

The following image shows the complete list of post-functions for this transition:

image2015-1-18 17:0:55.png

Post-function 2 is the one that causes the NullPointerException. Post-function 1 works just fine.

Thanks for any help!

4 answers

1 accepted

This widget could not be displayed.

Helene,

That is a bug. It was fixed in JIRA Workflow Toolbox 2.1.21. Currently, the most recent version of the plugin is 2.1.25. I recommend you to upgrade that version, since it provides many improvements and bug fixes.

If you need support about the plugin, you can create an issue at http://support.workflowarts.com

Regards,

Fidel

This widget could not be displayed.

Hi Helene,

Which versions of JIRA Workflow Toolbox, and JIRA are you using?

This widget could not be displayed.

Ah, sorry, forgot to include that. 

JIRA version 6.2.7

JIRA workflow toolbox version 2.1.20

This widget could not be displayed.

I see that version 2.1.24 contains the following in the release notes:

Labels custom fields rendering was failing.

So I tried to upgrade to the latest version, and that resolved the problem. 

Should have checked that before!

But thanks for the incredibly fast reply smile

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Aug 22, 2018 in Marketplace Apps

How a Marketplace app tech team is achieving gender diversity

Hello! My name is Genevieve Blanch, and I'm the Marketing Manager at RefinedWiki, creators of apps to give teams the tools to customize Atlassian platforms. Currently, 44% of the tech team at Re...

490 views 3 18
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you