Forums

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

Scriptrunner error : Cannot invoke method endsWith() on null object

Christos Moysiadis
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.
December 13, 2018

Good morning everyone,

Many days now i am receiving this ERROR in my atlassian.log, but i dont see that there is any major problem to my instance. 

2018-12-13 10:21:26,466 http-nio-8080-exec-13 ERROR anonymous 621x552579x1 1lq9thk <ip> /browse/ASMH [c.o.scriptrunner.fragments.JiraScriptCondition] Script condition failed: java.lang.NullPointerException: Cannot invoke method endsWith() on null object

Although i want to know whats going on and if someone has the same issue as me!

Kind regards

CM

1 answer

0 votes
Vasiliy Zverev
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.
December 13, 2018

Hi, Christos!

It means that you have a sctrpt condition on same transition.

When issue is opened JIRA try to calculate this condition and same variable is null, but method endsWith() is called.

What to do:

1) Find this condition

2) fix bug

Best regards,

Vasiliy

Christos Moysiadis
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.
December 13, 2018

@Vasiliy Zverev

Yeah this was my first thought too... the problem is that i can not track it... despite the fact i have the issue information! :( 

  • i am looking in the workflows for inline scripts but nothing exist.
  • Also i am looking for other custom scripts and the only code line that has the .endsWith() has to do with a method about the agent licence. But this field is filled too.

Well i'll continue to track it down and see whats going on!

Thank you for your reply

CM

Suggest an answer

Log in or Sign up to answer