Skip to content

NullPointerException when calling function 'index' with variable as argument #437

@mpaluchowski

Description

@mpaluchowski

Scanning the following code will cause a NullPointerException:

component {
    function foo(required any bar) {
        index(bar);
    }
}

That appears to be due to the use of index(bar). There's no exception when:

  • the function name is different than index,
  • the function argument is not a variable, ie. is a string,
  • the function has no arguments.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions