1

Closed

Wrong Assert in WideningBinaryNode.Evaluate

description

<p>I think </p> <p>&nbsp;</p> <p>Debug.Assert(convertibleLeftNodeValue != null || maxNodeValueType == NodeValueType.String);</p> <p>Debug.Assert(convertibleRightNodeValue != null || maxNodeValueType == NodeValueType.String);</p> <p>&nbsp;</p> <p>should be</p> <p>&nbsp;</p> <p>Debug.Assert(convertibleLeftNodeValue == null || maxNodeValueType == NodeValueType.String);</p> <p>Debug.Assert(convertibleRightNodeValue == null || maxNodeValueType == NodeValueType.String);</p> <p>&nbsp;</p> <p>I get this assertion if I use ExpressionConverter Expression=&quot;{}{0} != null&quot; in order to set a button to enabled if a item is selected in a list view. The conversion works as expected.</p>
Closed Apr 11, 2013 at 6:33 PM by kentcb
Fixed this a while back and forgot to close. I added NodeValueType.ReferenceType and checked for that.

comments