[Yanel-dev] [FYI] Yarep chokes on null String properties but this is neither documented nor checked against

Guillaume Déflache guillaume.deflache at wyona.com
Wed May 12 16:55:19 CEST 2010


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.

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