Description
It will throw NPE if add this test to RegexpExpressionsSuite:
import org.apache.spark.sql.catalyst.optimizer.ConstantFolding import org.apache.spark.sql.internal.SQLConf withSQLConf(SQLConf.OPTIMIZER_EXCLUDED_RULES.key -> ConstantFolding.getClass.getName.stripSuffix("$")) { checkEvaluation(Literal.create("foo", StringType) .likeAll("%foo%", Literal.create(null, StringType)), null) }