[Yanel-dev] [FYI] Yarep chokes on null String properties but
this is neither documented nor checked against
Michael Wechner
michael.wechner at wyona.com
Fri May 21 14:32:05 CEST 2010
Guillaume Déflache wrote:
> Hi!
>
> When using org.wyona.yarep.core.Node#setProperty(String name, String
> value) if value is null nothing happens at first but it looks like it
> can lead to problems later, e.g. a NPE on
> org.wyona.yarep.impl.repo.vfs.VirtualFileSystemNode.escapeSeparator(VirtualFileSystemNode.java:714)
> with Yarep r49426.
this should be fixed now.
Cheers
Michi
>
> I am not sure it makes sense to store null property values in Yarep at
> all and if this is indeed supported, but I thought I would share.
>
> Note: the same would probably happen with
> org.wyona.yarep.core.Node#setProperty(String name, Date value) and the
> Property implementation objects' Date-value and String-value setters,
> and also their constructors with Date and String parameters.
>
> HTH,
> Guillaume
More information about the Yanel-development
mailing list