Null pointer exception when using lfHideAllExcept on create screen

I am running into an issue when trying to use the lfHideAllExcept function when on the create screen.  The use case is that we want to show and hide relevant fields depending on a drop down value.

I am able to show or hide fields individually but get a null pointer exception (see below) when I try to use the lfHideAllExcept function with any field.  I'm relatively new to LiveFields so I'm sure it's something simple I'm missing but can't seem to figure it out

The initial script is pretty simple but the intent is to build out a list of all fields that are relevant for each option in the RFI Type field and show or hide them as appropriate...but I can't seem to get even a basic example to work.



if(argv["screen"] == "create"){
    if(argv["RFI Type"] == "Casings"){
        lfHideAllExcept("RFI Title");
		//lfHide("RFI Title");
        lfShow("RFI Title");



Log entry:

2016-05-17 14:30:47,774 http-nio-8080-exec-15 WARN rogersc1 870x9782x1 1rz7d9u /rest/keplerrominfo/jjupin/latest/lf/event [c.k.j.p.j.ui.livevalidator.LiveFieldRestService] Sil exception when executing script.
com.keplerrominfo.sil.lang.SILException: Exception while executing SIL program >>/data/atlassian/application-data/jira/silprograms/request_for_information/livefields/hook.sil<<
at com.keplerrominfo.jira.commons.silrunner.UnifiedSilRunner.throwAway(
at com.keplerrominfo.jira.commons.silrunner.UnifiedSilRunner.interpret(
at com.keplerrominfo.jira.plugins.jjupin.ui.livevalidator.LiveFieldRestService.executeHook(
at com.keplerrominfo.jira.plugins.jjupin.ui.livevalidator.LiveFieldRestService.executeHooks(
at com.keplerrominfo.jira.plugins.jjupin.ui.livevalidator.LiveFieldRestService.onEvent(
... 2 filtered
at java.lang.reflect.Method.invoke(
... 19 filtered
... 1 filtered
... 101 filtered
... 30 filtered
at net.bull.javamelody.MonitoringFilter.doFilter(
at net.bull.javamelody.MonitoringFilter.doFilter(
at net.bull.javamelody.PluginMonitoringFilter.doFilter(
at net.bull.javamelody.JiraMonitoringFilter.doFilter(
... 46 filtered
at java.util.concurrent.ThreadPoolExecutor.runWorker(
at java.util.concurrent.ThreadPoolExecutor$
at org.apache.tomcat.util.threads.TaskThread$
Caused by: com.keplerrominfo.sil.lang.SILInfoException: [SIL Error on line: 5, column: 9] null
at com.keplerrominfo.sil.lang.SILUtils.error(
at com.keplerrominfo.sil.lang.SILUtils.throwAway(
at com.keplerrominfo.sil.lang.SILUtils.throwAway(
at com.keplerrominfo.sil.lang.grammar.ASTCallNode.interpret(
at com.keplerrominfo.sil.lang.grammar.SILNode.interpret(
at com.keplerrominfo.sil.lang.grammar.SILNode.interpret(
at com.keplerrominfo.sil.lang.grammar.ASTIfNode.interpret(
at com.keplerrominfo.sil.lang.grammar.SILNode.interpret(
at com.keplerrominfo.sil.lang.grammar.ASTBlock.interpret(
at com.keplerrominfo.sil.lang.grammar.SILNode.interpret(
at com.keplerrominfo.sil.lang.grammar.ASTIfNode.interpret(
at com.keplerrominfo.sil.lang.grammar.SILNode.interpret(
at com.keplerrominfo.sil.lang.grammar.ASTParseNode.interpret(
at com.keplerrominfo.sil.lang.executors.CachedInterpreterExecutor.directInterpret(
at com.keplerrominfo.sil.lang.executors.CachedInterpreterExecutor.interpret(
at com.keplerrominfo.sil.lang.SILInterpreter.interpret(
at com.keplerrominfo.jira.commons.ivm.IssueSILInterpreter.interpret(
at com.keplerrominfo.jira.commons.silrunner.UnifiedSilRunner.interpret(
... 214 more
Caused by: java.lang.NullPointerException
at com.keplerrominfo.jira.plugins.jjupin.livevalidator.routines.LiveFieldHideAllExceptRoutine.executeRoutine(
at com.keplerrominfo.sil.lang.AbstractRoutine.execute(
at com.keplerrominfo.sil.lang.grammar.ASTCallNode.interpret(
... 229 more

2 answers

1 accepted

1 vote
Accepted answer

We fixed this in the latest version of JJUPIN (released). Do an update.


As always, have fun,


Thanks Radu, I can confirm this is working in 3.1.6


you have probably error in the field name lfHideAllExcept("RFI Title");

check it. If you are sure that this is correct please use id of this custom field istead of name. It will work for sure. Any problem? let me know

Hi Michal,

Thank you for the quick response!  Unfortunately the results are the same regardless of whether I use the name of the field or the ID (and I get the same results if I use a JIRA default field like summary or description)

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 29, 2018 in Marketplace Apps

How to set up an incident workflow from the VP of Engineering at Sentry

Hey Atlassian community, I help lead engineering at Sentry, an open-source error-tracking and monitoring tool that integrates with Jira. We started using Jira Software Cloud internally last year, a...

1,428 views 0 8
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