Vidar Ramdal wrote:
>>> On Fri, Apr 3, 2009 at 1:34 PM, Vidar Ramdal <[email protected]> wrote:
>>>> If I can disregard the points of backwards compatibility and
>>>> documentation for a second, I'd say: I've allways regarded
>>>> NonExistingResource as something of a hack, so I wouldn't mind trying
>>>> to avoid it as much as possible. A null returned when a resource does
>>>> not exist, is certainly easier to grasp for Sling newbies.
> 
>> Alexander Klimetschek schrieb:
>>> Yes, but that's why there are the "getResource()" methods (returning
>>> null) [...]
> 
> On Fri, Apr 3, 2009 at 2:06 PM, Felix Meschberger <[email protected]> wrote:
>> In addition to what Alex said: resolve() is really used by the Sling
>> engine to resolve the URL to a resource. Not returning null here makes
>> the whole processing a lot easier and simpler. [...]
> 
> OK, you convinced me :)
> 
I'm in favour of the consistency solution as well; resolve() should
always return a resource.

Carsten
-- 
Carsten Ziegeler
[email protected]

Reply via email to