Hi Wilson,
This will be fixed in the next release. Instead of a NPE it will throw a
DocumentNotFoundException which you can check for.
We hope to release the new version of the Hippo Site Toolkit (including
an update of the Hippo Repository Java Adapter) today or in the next few
days.
Regards,
Bart
Wilson de Paula Pedro Junior wrote:
Hi,
Is there a way in a JSP to check if a specific document exists in the
repository returning a boolean value?
I'm using now the fetchDocument to check but if it doesn't exist I get an
object which is not null but throws a nullpointer when I try to display on
screen.
Thanks!
Wilson
********************************************
Hippocms-dev: Hippo CMS development public mailinglist
Searchable archives can be found at:
MarkMail: http://hippocms-dev.markmail.org
Nabble: http://www.nabble.com/Hippo-CMS-f26633.html
--
Hippo B.V. - Amsterdam
Oosteinde 11, 1017 WT, Amsterdam, +31(0)20-5224466
Hippo USA Inc. - San Francisco
101 H Street, Suite Q, Petaluma CA, 94952-3329, +1 (707) 773-4646
-----------------------------------------------------------------
http://www.onehippo.com - [EMAIL PROTECTED]
-----------------------------------------------------------------
********************************************
Hippocms-dev: Hippo CMS development public mailinglist
Searchable archives can be found at:
MarkMail: http://hippocms-dev.markmail.org
Nabble: http://www.nabble.com/Hippo-CMS-f26633.html