Skip to content

holarchy array isEmpty Transition operator throws exception. #17

@phil-kahrl

Description

@phil-kahrl

Build info: "appgen": "@encapsule/holistic v0.0.46 crossroads t10PUwZHS3e8dhu3oBpMRA 10e623d9d2dbfb86af25bf3795dc8ec73e9af666 2020-10-08T18:50:20.000Z",

When attempting to use the holarchy arrayIsEmpty operator in an apm, for example:

holarchy: { cm: { operators: { ocd: { arrayIsEmpty: { path: "#.foo.bar..."

An exception is thrown:

OPC::evaluate <XSwV...> [4:0] TransitionOperator threw an illegal exception that was handled by OPC: Cannot read property 'path' of undefined

Error is originating here:

https://github.com/Encapsule/holistic/blob/v0.0.46-crossroads/PACKAGES/holarchy/lib/intrinsics/HolarchyCore/HolarchyCoreMemory/TransitionOperator-ocd-array-is-empty.js#L45

because line 43 should have "arrayIsEmpty" instead of "isArrayEmpty"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions