Skip to content

[bug] The IntKeyEncoder.Encode function panics if the input math.Int is nil or negative.  #2491

@Unique-Divine

Description

@Unique-Divine

The IntKeyEncoder.Encode function panics if the input math.Int is nil or negative. This could lead to unexpected crashes if invalid input is provided. Consider returning an error instead of panicking to allow for more robust error handling in calling code.

Originally posted by @gemini-code-assist[bot] in #2490 (comment)

medium

Metadata

Metadata

Assignees

No one assigned

    Labels

    S-triageStatus: This issue is waiting on initial triage. More Info: https://tinyurl.com/25uty9w5

    Type

    No type

    Projects

    Status

    ⚡ Building 🧱

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions