Multiple value customfield with JSD Edited

I have plugin that implements multivalue customfield. When i try set it preset value. it causes NPE with stack

ncaught exception thrown by REST service: null
java.lang.NullPointerException
	at scala.collection.convert.Wrappers$JListWrapper.iterator(Wrappers.scala:88)
	at scala.collection.IterableLike$class.foreach(IterableLike.scala:72)
	at scala.collection.AbstractIterable.foreach(Iterable.scala:54)
	at scala.collection.generic.Growable$class.$plus$plus$eq(Growable.scala:59)
	at scala.collection.mutable.ListBuffer.$plus$plus$eq(ListBuffer.scala:183)
	at scala.collection.mutable.ListBuffer.$plus$plus$eq(ListBuffer.scala:45)
	at scala.collection.TraversableLike$class.to(TraversableLike.scala:635)
	at scala.collection.AbstractTraversable.to(Traversable.scala:104)
	at scala.collection.TraversableOnce$class.toList(TraversableOnce.scala:279)
	at scala.collection.AbstractTraversable.toList(Traversable.scala:104)
	at com.atlassian.servicedesk.syntax.conversion.ScalaConverters$$anonfun$ListIso$1.apply(ScalaConverters.scala:55)
	at com.atlassian.servicedesk.syntax.conversion.ScalaConverters$$anonfun$ListIso$1.apply(ScalaConverters.scala:54)
	at com.atlassian.fugue.converters.Iso$$anon$7.asB(ScalaConverters.scala:161)
	at com.atlassian.fugue.converters.ScalaConverters$ToScalaSyntax$.toScala$extension(ScalaConverters.scala:50)
	at com.atlassian.servicedesk.syntax.conversion.ListConversion$class.toScalaList(ListConversion.scala:78)
	at com.atlassian.servicedesk.internal.utils.Convert$.toScalaList(Convert.scala:34)
	at com.atlassian.servicedesk.internal.feature.customer.request.requesttype.field.RequestTypeFieldInternalServiceScala$$anonfun$setFieldValuesShim$1.apply(RequestTypeFieldInternalServiceScala.scala:226)
	at com.atlassian.servicedesk.internal.feature.customer.request.requesttype.field.RequestTypeFieldInternalServiceScala$$anonfun$setFieldValuesShim$1.apply(RequestTypeFieldInternalServiceScala.scala:226)
	at scalaz.$bslash$div.map(Either.scala:111)
	at com.atlassian.servicedesk.internal.feature.customer.request.requesttype.field.RequestTypeFieldInternalServiceScala.setFieldValuesShim(RequestTypeFieldInternalServiceScala.scala:226)
	at com.atlassian.servicedesk.internal.rest.RequestTypeFieldResource.com$atlassian$servicedesk$internal$rest$RequestTypeFieldResource$$valueFunction$3(RequestTypeFieldResource.scala:384)
	at com.atlassian.servicedesk.internal.rest.RequestTypeFieldResource$$anonfun$updatePresetValues$1.apply(RequestTypeFieldResource.scala:385)
	at com.atlassian.servicedesk.internal.rest.RequestTypeFieldResource$$anonfun$updatePresetValues$1.apply(RequestTypeFieldResource.scala:385)
	at com.atlassian.servicedesk.internal.rest.RequestTypeFieldResource$$anonfun$$$$aba62dab434b135cf3ca7be2cfcd3d2$$$$nonfun$apply$84$$anonfun$apply$85.apply(RequestTypeFieldResource.scala:461)
	at com.atlassian.servicedesk.internal.rest.RequestTypeFieldResource$$anonfun$$$$aba62dab434b135cf3ca7be2cfcd3d2$$$$nonfun$apply$84$$anonfun$apply$85.apply(RequestTypeFieldResource.scala:460)
	at scalaz.$bslash$div.flatMap(Either.scala:134)
	at com.atlassian.servicedesk.internal.rest.RequestTypeFieldResource$$anonfun$executeValueRequest$1$$anonfun$apply$81$$anonfun$apply$82$$anonfun$apply$83$$anonfun$apply$84.apply(RequestTypeFieldResource.scala:460)
	at com.atlassian.servicedesk.internal.rest.RequestTypeFieldResource$$anonfun$executeValueRequest$1$$anonfun$apply$81$$anonfun$apply$82$$anonfun$apply$83$$anonfun$apply$84.apply(RequestTypeFieldResource.scala:459)
	at scalaz.$bslash$div.flatMap(Either.scala:134)
	at com.atlassian.servicedesk.internal.rest.RequestTypeFieldResource$$anonfun$executeValueRequest$1$$anonfun$apply$81$$anonfun$apply$82$$anonfun$apply$83.apply(RequestTypeFieldResource.scala:459)
	at com.atlassian.servicedesk.internal.rest.RequestTypeFieldResource$$anonfun$executeValueRequest$1$$anonfun$apply$81$$anonfun$apply$82$$anonfun$apply$83.apply(RequestTypeFieldResource.scala:458)
	at scalaz.$bslash$div.flatMap(Either.scala:134)
	at com.atlassian.servicedesk.internal.rest.RequestTypeFieldResource$$anonfun$executeValueRequest$1$$anonfun$apply$81$$anonfun$apply$82.apply(RequestTypeFieldResource.scala:458)
	at com.atlassian.servicedesk.internal.rest.RequestTypeFieldResource$$anonfun$executeValueRequest$1$$anonfun$apply$81$$anonfun$apply$82.apply(RequestTypeFieldResource.scala:457)
	at scalaz.$bslash$div.flatMap(Either.scala:134)
	at com.atlassian.servicedesk.internal.rest.RequestTypeFieldResource$$anonfun$executeValueRequest$1$$anonfun$apply$81.apply(RequestTypeFieldResource.scala:457)
	at com.atlassian.servicedesk.internal.rest.RequestTypeFieldResource$$anonfun$executeValueRequest$1$$anonfun$apply$81.apply(RequestTypeFieldResource.scala:456)
	at scalaz.$bslash$div.flatMap(Either.scala:134)
	at com.atlassian.servicedesk.internal.rest.RequestTypeFieldResource$$anonfun$executeValueRequest$1.apply(RequestTypeFieldResource.scala:456)
	at com.atlassian.servicedesk.internal.rest.RequestTypeFieldResource$$anonfun$executeValueRequest$1.apply(RequestTypeFieldResource.scala:455)
	at scalaz.$bslash$div.flatMap(Either.scala:134)
	at com.atlassian.servicedesk.internal.rest.RequestTypeFieldResource.executeValueRequest(RequestTypeFieldResource.scala:455)
	at com.atlassian.servicedesk.internal.rest.RequestTypeFieldResource.updatePresetValues(RequestTypeFieldResource.scala:385)
	... 3 filtered
	at java.lang.reflect.Method.invoke(Method.java:498)
	... 19 filtered
	at com.atlassian.plugins.rest.module.RestDelegatingServletFilter$JerseyOsgiServletContainer.doFilter(RestDelegatingServletFilter.java:154)
	... 1 filtered
	at com.atlassian.plugins.rest.module.RestDelegatingServletFilter.doFilter(RestDelegatingServletFilter.java:68)
	... 33 filtered
	at com.atlassian.servicedesk.internal.web.OperationalStatusAwareHttpFilter.doFilter(OperationalStatusAwareHttpFilter.java:31)
	... 4 filtered
	at com.atlassian.servicedesk.internal.web.UrlOperationalStatusCheckFilter.doFilterWhenLicensed(UrlOperationalStatusCheckFilter.java:38)
	at com.atlassian.servicedesk.internal.web.OperationalStatusAwareHttpFilter.doFilter(OperationalStatusAwareHttpFilter.java:31)
	... 4 filtered
	at com.atlassian.servicedesk.internal.web.PopulateEyeballForRestFilter.doFilterWhenLicensed(PopulateEyeballForRestFilter.java:33)
	at com.atlassian.servicedesk.internal.web.OperationalStatusAwareHttpFilter.doFilter(OperationalStatusAwareHttpFilter.java:31)
	... 8 filtered
	at com.atlassian.web.servlet.plugin.request.RedirectInterceptingFilter.doFilter(RedirectInterceptingFilter.java:21)
	... 53 filtered
	at com.atlassian.jira.security.JiraSecurityFilter.lambda$doFilter$0(JiraSecurityFilter.java:76)
	... 1 filtered
	at com.atlassian.jira.security.JiraSecurityFilter.doFilter(JiraSecurityFilter.java:74)
	... 16 filtered
	at com.atlassian.plugins.rest.module.servlet.RestSeraphFilter.doFilter(RestSeraphFilter.java:37)
	... 20 filtered
	at com.atlassian.jira.servermetrics.CorrelationIdPopulatorFilter.doFilter(CorrelationIdPopulatorFilter.java:30)
	... 5 filtered
	at com.atlassian.servicedesk.internal.web.CustomerContextSettingFilter.lambda$invokeFilterChain$0(CustomerContextSettingFilter.java:181)
	at com.atlassian.servicedesk.internal.utils.context.ReentrantThreadLocalBasedCodeContext.rteInvoke(ReentrantThreadLocalBasedCodeContext.java:142)
	at com.atlassian.servicedesk.internal.utils.context.ReentrantThreadLocalBasedCodeContext.runOutOfContext(ReentrantThreadLocalBasedCodeContext.java:94)
	at com.atlassian.servicedesk.internal.utils.context.CustomerContextServiceImpl.runOutOfCustomerContext(CustomerContextServiceImpl.java:64)
	at com.atlassian.servicedesk.internal.web.CustomerContextSettingFilter.outOfCustomerContext(CustomerContextSettingFilter.java:174)
	at com.atlassian.servicedesk.internal.web.CustomerContextSettingFilter.doFilterImpl(CustomerContextSettingFilter.java:130)
	at com.atlassian.servicedesk.internal.web.CustomerContextSettingFilter.doFilter(CustomerContextSettingFilter.java:121)
	... 4 filtered
	at com.atlassian.jwt.internal.servlet.JwtAuthFilter.doFilter(JwtAuthFilter.java:32)
	... 3 filtered
	at com.atlassian.web.servlet.plugin.request.RedirectInterceptingFilter.doFilter(RedirectInterceptingFilter.java:21)
	... 4 filtered
	at com.atlassian.web.servlet.plugin.LocationCleanerFilter.doFilter(LocationCleanerFilter.java:36)
	... 29 filtered
	at com.atlassian.jira.servermetrics.MetricsCollectorFilter.doFilter(MetricsCollectorFilter.java:25)
	... 27 filtered
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	at java.lang.Thread.run(Thread.java:745)

Does somebody know how JSD works with customfield, so i can prepare plguin data to interact with JSD?

1 answer

Suggest an answer

Log in or Join to answer
Community showcase
Teodora [Botron]
Published Thursday in Marketplace Apps

Jira Inferno: The Nine Circles of Jira Administration Hell

If you spend enough time as a Jira admin - whether you are managing a single, mid-sized instance, a large enterprise one or juggling multiple instances at once - you will eventually find yourself in ...

989 views 5 18
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot