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

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

Hi Helene,

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

Ah, sorry, forgot to include that. 

JIRA version 6.2.7

JIRA workflow toolbox version 2.1.20

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Jul 10, 2018 in Marketplace Apps

If you’re an Atlassian app developer, you’ll want to know about Atlas Camp!

This September 6-7, hundreds of Atlassian App developers will flock to Barcelona Spain to build skills, discover product roadmaps, meet face-to-face with the Atlassian team, and learn how to extend t...

146 views 0 4
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