evaluateOrNull

fun evaluateOrNull(expression: Any?, context: ExpressionContext): Any?

Evaluates expression, or returns null when it cannot be evaluated.

The GLES paint and filter paths fail closed rather than aborting a frame, so they take this form; evaluate is for callers that want to see the failure.