B2026-028_Selecting_to_Go_To_on_an_RO_causes_PROMS_to_crash #730
Reference in New Issue
Block a user
Delete Branch "B2026-028_Selecting_to_Go_To_on_an_RO_causes_PROMS_to_crash"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
B2026-028 Selecting to Go To on an RO causes PROMS to crash
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());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() : "");
I agree. It would be safter to do the TryParse as suggested
I can add the tryparse, but since the match is only looking for integers [0-9]{1,4} why would the tryparese be needed?
Looks good. Ready for QA.
change looks good
Tested with version 2.3.2603.914 the null reference error has been corrected.