Skip to content

BitonicSort should reject a null array explicitly #7549

Description

@cragkhit

BitonicSort currently dereferences a null input while checking its length, producing an incidental NullPointerException. The proposed change validates the input first, raises a descriptive IllegalArgumentException, and adds a focused regression test. This issue accompanies a Matcha study recommendation derived from https://stackoverflow.com/a/64124615.

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