Error when deleting numbers

Jan 27, 2012 at 7:35 AM

When you have a number and you delete all values to a blank input an exception is thrown before you have a chance to type anything. This is because the number converter immediately tries to look at the first character when the string is empty. I added the following lines to just return null when the string is empty so it doesn't bother trying to convert it.

BaseNumberConverter.cs

Line 28

if (str.Length == 0)
    return null;

Coordinator
Jan 27, 2012 at 7:36 AM

Thanks for the fix!

Coordinator
Jan 27, 2012 at 5:01 PM

Checkedin the changes.