In current 3.0.0 version, it seems that null object can not be returned from peer endpoints. If not intentionally, this seems a bug.
public override void patch(Ice.Object v)
{
Debug.Assert(type_ != null);
if (v!=null) // necessary?
{
if(!type_.IsInstanceOfType(v))
{
throw new System.InvalidCastException("expected element of type " + type()
+ " but received " + v.GetType().FullName);
}
}
value = v;
}
Best regards
OrNot

Reply With Quote
) and, to make things worse, the Add method and the indexer of the implementation of CollectionBase appear to be non-virtual, so the call isn't dispatched into the NodeList implementation 