Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

getting error in log files in jira

Pankaj Mehta
Contributor
August 9, 2023

This is code :

11. cfList.find { it ->

23. globalActType = parent?.concat("_").concat(child)

-------------x-----------------x---------------------x------------------x-------------------x-------

This beolw error is showing in log files:

[c.o.scriptrunner.customfield.GroovyCustomField] Script field failed on issue: ABC-1001, field: Global Activity Type
java.lang.NullPointerException
	at java_lang_String$concat$14.call(Unknown Source)
	at scripts.scriptedfields.GlobalActivityType$_run_closure1.doCall(GlobalActivityType.groovy:23)
	at scripts.scriptedfields.GlobalActivityType.run(GlobalActivityType.groovy:11)
[c.o.scriptrunner.customfield.GroovyCustomField]

 can anyone tell  me what is the cause for that above error ?

Thanks.

1 answer

0 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 9, 2023

Look at the rest of the error - it should tell you which line in your script is making the call to the Jira API that is throwing that snippet. 

People generally won't want to read your entire code to understand it and then looking for errors, when you could just tell us what line starts the error off

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events