Hi All, Technically speaking "returning null" is the correct thing to do. But by returning an empty object we can skip the error handling part/null checks in jaggery code from which the corresponding manager method is called.
Considering a method returning a user object the client code should not be able to proceed further if there is no user. So IMO returning null and providing the necessary null checks and error handling should be done. Any thoughts on $subject and what is the method followed in WSO2? Any other viewpoints? Thanks and Regards. -- *Sabra Ossen* *Software Engineer* Email: [email protected] Mobile: +94 767 837356
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
