laptop and a wrench

漏洞

The ArcGIS Pro Arcade expression builder fails to detect if the item returned from a First function may be null when the input array is from a filter function that filters data based on numeric attribute fields.

ArcGIS Pro
漏洞 ID 编号 BUG-000167914
已提交May 30, 2024
上次修改时间August 2, 2024
适用范围ArcGIS Pro
找到的版本3.3
操作系统Windows OS
操作系统版本10.0 64 Bit
状态As Designed

附加信息

When using the First function always add a null check, at runtime if the passed featureset to the First function has no rows, the First function returns null. The validations done both by the expression builder and the at save attribute rules are very basic and do not catch all runtime errors, just like any other programming language. The expression builder uses the first row in the table if no rows are available in the table, an ephemeral in-memory row is created with default values to be used for validation, and the in-memory row is also used during save time. The expression builder may or may not catch the null error, the same thing with at save. So it is always recommended to handle null checks in the script.

解决办法

When using the First function always add a null check if the returned row is null. That is because the featureset might be empty.

重现步骤

漏洞 ID: BUG-000167914

软件:

  • ArcGIS Pro

当漏洞状态发生变化时获得通知

下载 Esri 支持应用程序

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项