Skip to content

Bug Report – Error 21: undefined is not an object #2

@shakhaldi

Description

@shakhaldi

Hello,

While running the Outliner.jsx script on Adobe Illustrator (macOS), I encountered the following error:

Error 21: undefined is not an object.
Line: 289
-> siblings[0].selected = true;
It seems that the siblings array is either undefined or empty at this point, which causes the script to fail. A conditional check before accessing the array could help prevent the issue:

if (siblings && siblings.length > 0) {
siblings[0].selected = true;
}
System Info:

Adobe Illustrator version: [e.g. 2024 v28.0]
macOS version: [e.g. macOS Sonoma 14.3]
Please let me know if there's a fix or updated version. Thank you for the great script!

Best regards,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions