Skip to content

Crash while getting allocatedUserChannels #236

@jackkudo

Description

@jackkudo

Describe the bug

In some cases the app crashes. I got the log from the Test Flight then saw the issue come from the function

  • (NSArray *)allocatedUserChannels in class RMQMultipleChannelAllocator.m

Seems like in that function it tried to remove the first element in case the array is empty.

Reproduction steps

No specific steps. Sometimes it happens.

Expected behavior

Must check the array length should be greater than 0 then remove the first element as the current logic.

Additional context

Screenshot 2024-10-09 at 16 14 30

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions