B2026-028_Selecting_to_Go_To_on_an_RO_causes_PROMS_to_crash #730

Merged
jjenko merged 3 commits from B2026-028_Selecting_to_Go_To_on_an_RO_causes_PROMS_to_crash into Development 2026-03-09 14:41:04 -04:00
Owner

B2026-028 Selecting to Go To on an RO causes PROMS to crash

B2026-028 Selecting to Go To on an RO causes PROMS to crash
plarsen self-assigned this 2026-03-08 22:53:10 -04:00
jjenko was assigned by plarsen 2026-03-08 22:53:10 -04:00
mschill was assigned by plarsen 2026-03-08 22:53:10 -04:00
mvickers was assigned by plarsen 2026-03-08 22:53:10 -04:00
plarsen added 2 commits 2026-03-08 22:53:11 -04:00
plarsen requested review from jjenko 2026-03-08 22:53:23 -04:00
mschill requested changes 2026-03-09 07:17:43 -04:00
Dismissed
mschill left a comment
Owner

see note ---- could parsing the character as an int cause an exception if it can't be parsed or is null?

see note ---- could parsing the character as an int cause an exception if it can't be parsed or is null?
@@ -380,3 +380,3 @@
if (chld.value != null)
{
RoUsageInfo SavROLink = null;
chld.value = Regex.Replace(chld.value, @"\\u([0-9]{1,4})\?", m => Convert.ToChar(int.Parse(m.Groups[1].Value)).ToString());
Owner

Could there be an exception here with the int.Parse?

Should this be something like:

chld.value = Regex.Replace(chld.value, @"\u([0-9]{1,4})?", m => int.TryParse(m?.Groups[1]?.Value, out int result) ? Convert.ToChar(result).ToString() : "");

Could there be an exception here with the int.Parse? Should this be something like: chld.value = Regex.Replace(chld.value, @"\\u([0-9]{1,4})\?", m => int.TryParse(m?.Groups[1]?.Value, out int result) ? Convert.ToChar(result).ToString() : "");
Owner

I agree. It would be safter to do the TryParse as suggested

I agree. It would be safter to do the TryParse as suggested
Author
Owner

I can add the tryparse, but since the match is only looking for integers [0-9]{1,4} why would the tryparese be needed?

I can add the tryparse, but since the match is only looking for integers [0-9]{1,4} why would the tryparese be needed?
mschill marked this conversation as resolved
plarsen added 1 commit 2026-03-09 13:41:02 -04:00
mschill approved these changes 2026-03-09 14:32:14 -04:00
mschill left a comment
Owner

Looks good. Ready for QA.

Looks good. Ready for QA.
jjenko approved these changes 2026-03-09 14:38:56 -04:00
jjenko left a comment
Owner

change looks good

change looks good
jjenko merged commit fa114f4467 into Development 2026-03-09 14:41:04 -04:00
Member

Tested with version 2.3.2603.914 the null reference error has been corrected.

Tested with version 2.3.2603.914 the null reference error has been corrected.
Sign in to join this conversation.
No Reviewers
No Label
4 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Volian/SourceCode#730