CommunityToolkit / CommunityToolkit/Maui

[BUG] end should be < than charSequence length

Open
#2,626 3 comments 0 reactions 0 assignees View on GitHub
bug unverified
Dominant language
C#
Stars
2.7k
Forks
500
Avg merge
2d 14h
Merged PRs (30d)
7

Description

### Is there an existing issue for this?

- [x] I have searched the existing issues

### Did you read the "Reporting a bug" section on Contributing file?

- [x] I have read the "Reporting a bug" section on Contributing file: https://github.com/CommunityToolkit/Maui/blob/main/CONTRIBUTING.md#reporting-a-bug

### Current Behavior

I'm using the SelectAllTextBehavior but sometimes it produces the error
Java.Lang.IllegalArgumentException
end should be < than charSequence length





### Expected Behavior

SelectAllText not produce the error

### Steps To Reproduce

This error neve happens to me. It is only captured by the issue tracker

![Image](https://github.com/user-attachments/assets/c2b452e5-f915-4064-a2db-83a3db4e8b2f)

### Link to public reproduction project repository

N/A

### Environment

```markdown
- .NET MAUI CommunityToolkit: 11.2.0
- OS: Android
- .NET MAUI: 9.0.60
```

### Anything else?

Fix https://github.com/CommunityToolkit/Maui/pull/2625

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.