cfqueryparam list throws cryptic exception

Description

When setting a cfqueryparam list to true and passing an empty list we get a cryptic exception. A more developer friendly exception will be helpful.

lucee.runtime.exp.NativeException: Index: 0, Size: 0
at java.util.ArrayList.rangeCheck(Unknown Source)
at java.util.ArrayList.get(Unknown Source)
at lucee.runtime.tag.util.QueryParamConverter.get(QueryParamConverter.java:225)
at lucee.runtime.tag.util.QueryParamConverter.convert(QueryParamConverter.java:181)
at lucee.runtime.tag.util.QueryParamConverter.convert(QueryParamConverter.java:71)
at lucee.runtime.tag.Query._doEndTag(Query.java:579)
at lucee.runtime.tag.Query.doEndTag(Query.java:552)
at aaa.bbb$cf.call(/aaa/bbb.cfm:32)
at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:945)
at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:837)
at lucee.runtime.PageContextImpl.doInclude(PageContextImpl.java:818)
...

Activity

Show:
Igal Sapir
December 21, 2020, 10:10 AM

Error message now shows:

param [<param-name>] may not be empty

Fixed

Assignee

Igal Sapir

Reporter

Igal Sapir

Labels

Fix versions

Priority

New