Added logic to protect against failures when an invalid transition text is removed.

Added logic to protect against failures when an invalid transition text is selected.
This commit is contained in:
Rich
2013-07-03 15:58:12 +00:00
parent 76710282b4
commit aace632c9b
2 changed files with 6 additions and 0 deletions

View File

@@ -497,6 +497,9 @@ namespace VEPROMS.CSLA.Library
}
private static string BuildString(TransitionBuilder tb)
{
//Invalid Transition Check
if (tb._ToItem.ActiveParent == null || tb._RangeItem.ActiveParent == null)
return "?";
int startIndex = 0;
int index = -1;
string prefix = null;