KB-1341 Using a nested split() throws a NullPointerException


When using split() with a delimiter in the first position, the expression throws a Null Pointer Exception. 

For example, the following expression:

split(split("accbcc", "a"), "b")

is not valid because the inner 'split()' returns a list of two texts, the first empty (null) and the second with characters

However, the following will not throw a null pointer exception:

split({null, "accbcc"}, "b")


This issue has been reported to the Appian product team. The reference number for this issue is AN-57629.


Avoid using nested splits with a leading delimiter.

Affected Versions

This article applies to all versions of Appian.

Last Reviewed: April 2017