this.core = core;
}
- /**
- * {@inheritDoc}
- */
@Override
public Object get(TemplateContext templateContext, Object object, String member) {
Profile profile = (Profile) object;
if (avatarId == null) {
return null;
}
- if (core.getImage(avatarId, false) == null) {
+ if (!core.getImage(avatarId).isPresent()) {
/* avatar ID but no matching image? show nothing. */
return null;
}