Please have a look at PersistentObject.get() .. to me it seems, that it will never return null, but in the case of null it will return "". Did you test the usage on all possible values?