Hi Eranda, I'm not sure, but may be that you can't return null when it comes to a Stream, because the users of that method probably should not expect for that. But, there are situations where people can have content that is null. Its hard to understand why such could be possible, but people might be using registry in various different ways. For example, we once tried to disallow storing null valued properties, which broke some components, and we added it back.
Its good to make it consistent (ex:- both throw exception or both return null), but mindful that this might break things. Also look into whether there is a convention that does not allow returning null for a Stream. Thanks, Senaka. On Sun, Sep 30, 2012 at 10:26 PM, Eranda Sooriyabandara <[email protected]>wrote: > Hi all, > AFAIU this $subject is uneven behavior. Any special reason for this? > > thanks > Eranda > > * > * > > -- *Senaka Fernando* Member - Integration Technologies Management Committee; Technical Lead; WSO2 Inc.; http://wso2.com* Member; Apache Software Foundation; http://apache.org E-mail: senaka AT wso2.com **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818 Linked-In: http://linkedin.com/in/senakafernando *Lean . Enterprise . Middleware
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
