Fixed NPE found under peregrine-cms/614: resource.adaptTo(ValueMap.class) => resource.getValueMap().
The NPE does not show always, whenever / is represented as a SyntheticResourceresource.adaptTo(ValueMap.class) is null while resource.getValueMap() is not.
Testing: Create a Test tenant and open http://localhost:8080/content/test/pages/articles.html - you should not see any logs for that NPE anymore. Though it might not have been present before if ResourceResolver represented / with a non-synthetic resource.
Fixed NPE found under peregrine-cms/614:
resource.adaptTo(ValueMap.class)
=>resource.getValueMap()
.The
NPE
does not show always, whenever/
is represented as aSyntheticResource
resource.adaptTo(ValueMap.class)
isnull
whileresource.getValueMap()
is not.Testing: Create a Test tenant and open http://localhost:8080/content/test/pages/articles.html - you should not see any logs for that
NPE
anymore. Though it might not have been present before ifResourceResolver
represented/
with a non-synthetic resource.