Skip to content

Obj#setActiveGroupNames() fails if used on an immutable collection #19

@Igrium

Description

@Igrium

The method Obj#setActiveGroupNames() fails with a NullPointerException if used on a collection generated by Set.of() or List.of(). This is because those collections throw an exception if you try to test if they contain null, which you do when in the block:

else if (groupNames.contains(null))
{
    throw new NullPointerException("The groupNames contains null");
}

This is pretty annoying because if you're trying to add a face to only one group, that's what you'll be using 90% of the time.

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