NullPointerException with Groovy condition breaks JIRA Workflow Designer

Description

*This issue has moved*

This issue has been moved permanently to Adaptavist's Product Support JIRA instance.

All existing users of this instance should have the same username on our Product Support instance. However, you will very likely need to click on the
Can't access your account link in order to reset to a new password.

Not sure whether to raise this against JWD or GRV so my apologies if Groovy Runner is innocent!

I've just discovered that the JIRA Workflow Designer cannot display workflows which have a script condition. JWD throws a java.lang.reflect.InvocationTargetException which ends with a final Caused by: java.lang.NullPointerException at com.onresolve.jira.groovy.GroovyConditionFactory.getVelocityParamsForView(GroovyConditionFactory.java:105)

If I take out the condition JWD can display the workflow.

I tried the conditions

and

then

for good measure and got the same error each time.

I've attached the stack trace. Any advice appreciated!

Environment

JIRA 4.0.2 standalone with Groovy Runner plugin 1.7.3.1 with fix for and JIRA Workflow Designer Plugin v1.3.1 using groovy 1.7.10

Activity

Show:
Jamie Echlin
July 4, 2011, 11:04 AM

Partially fixed in 1.7.7 - at least it should not throw an error

Jamie Echlin
May 25, 2011, 9:11 AM

Hi... probably a bug for me to fix. Have done a quick hack which I'll release shortly, but leave the other issue open because I have some questions for Jon Doklovic.
cheers, jamie

J Thomas
May 25, 2011, 2:35 AM

I've also raised JWD-33 in case the problem's with the JIRA Workflow Designer.

Fixed
Your pinned fields
Click on the next to a field label to start pinning.

Assignee

Jamie Echlin

Reporter

J Thomas

Internal Complexity

Unknown

Internal Value

Unknown