Unknown or invalid @TransitionName causes exception

Description

When using the "Transition Date/Time Field" along with the "@TransitionName" parameter the indexer will throw an exception if the transition name is not found in any of the workflows.

The exception given is:

This seems to be caused by an empty "actionsIDs" collection being passed to workflowHistoryDAO.findWorkflowEntry(issue, actionIDs);

This line checks if the collection is null but does not check if it is empty:
https://bitbucket.org/innovalog/jmcf/src/3a0ed2a79ddcb7f5bcc8b2be0ebd9e88ab6634d8/src/main/java/com/innovalog/jmcf/fields/ActionExecutionTimeField.java?at=master#cl-44

Normally if an error occurs, null is returned instead of the collection, however, in the case of an invalid workflow transition name, the collection is created but never filled. This can be seen here:
https://bitbucket.org/innovalog/jmcf/src/3a0ed2a79ddcb7f5bcc8b2be0ebd9e88ab6634d8/src/main/java/com/innovalog/jmcf/fields/AbstractTransitionSearchField.java?at=master#cl-102

Environment

None

Customer Info

None

Assignee

Unassigned

Reporter

Jacob Feisley

Labels

None

Internal Complexity

Unknown

Internal Value

Unknown

Requires documentation

None

Impact

None

Fix versions

Affects versions

Priority

Major
Configure