We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e4b4f7 commit ab32ceeCopy full SHA for ab32cee
aemdesign-aem-services/src/main/java/design/aem/models/v2/content/Reference.java
@@ -43,7 +43,7 @@ protected void ready() {
43
String path = componentProperties.get("path","");
44
45
Resource referenceResource = getResourceResolver().getResource(path);
46
- if (ResourceUtil.isNonExistingResource(referenceResource)) {
+ if (referenceResource != null && !ResourceUtil.isNonExistingResource(referenceResource)) {
47
LOGGER.error("reference path does not exist {}", path);
48
path = "";
49
}
@@ -66,4 +66,4 @@ protected void ready() {
66
//compile variantTemplate param
67
componentProperties.put(COMPONENT_VARIANT_TEMPLATE, format(COMPONENT_VARIANT_TEMPLATE_FORMAT,variant));
68
69
-}
+}
0 commit comments