We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
【问题描述】 当指定的集合中存在 null 元素,且 null 位于集合的首位时,会抛出 NullPointerException。
【测试步骤】
Expression expr = AviatorEvaluator.compile("seq.max(coll)"); Map<String, Object> env = new HashMap<>(); env.put("coll", Arrays.asList(null, 1, 2)); Object obj = expr.execute(env); System.out.println(obj);
【预期结果】 忽略集合中的 null 值,输出结果为 2
【实际结果】 报错 NullPointerException
The text was updated successfully, but these errors were encountered:
No branches or pull requests
【问题描述】
当指定的集合中存在 null 元素,且 null 位于集合的首位时,会抛出 NullPointerException。
【测试步骤】
【预期结果】
忽略集合中的 null 值,输出结果为 2
【实际结果】
报错 NullPointerException
The text was updated successfully, but these errors were encountered: