Skip to content

Fix LT-22355: Crash after typing a letter in Find dialog box#694

Open
jtmaxwell3 wants to merge 3 commits intomainfrom
LT-22355
Open

Fix LT-22355: Crash after typing a letter in Find dialog box#694
jtmaxwell3 wants to merge 3 commits intomainfrom
LT-22355

Conversation

@jtmaxwell3
Copy link
Collaborator

@jtmaxwell3 jtmaxwell3 commented Feb 23, 2026

This fixes https://jira.sil.org/browse/LT-22355.


This change is Reviewable

@github-actions
Copy link

github-actions bot commented Feb 23, 2026

NUnit Tests

    1 files  ±0      1 suites  ±0   5m 36s ⏱️ -56s
4 407 tests ±0  4 320 ✅ ±0  87 💤 ±0  0 ❌ ±0 
4 416 runs  ±0  4 329 ✅ ±0  87 💤 ±0  0 ❌ ±0 

Results for commit b86add2. ± Comparison against base commit cb374e2.

♻️ This comment has been updated with latest results.

{
if (geckoBrowser.Document == null)
{
view.StatusText = "No Document";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this string should be pulled from xWorksStrings.resx so that it can be localized.

string newResults = string.Empty;
if (geckoBrowser.Document == null)
{
results = newResults.Split(new[] { ';' }, StringSplitOptions.RemoveEmptyEntries);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

newResults is always string.Empty here. Can this line be simplified or removed?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed to results = null, which obviated the need for "No Document".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants