Screen rendering error on ViewForumMessage page. Handled NPE.
Applied slightly modified patch. Thanks Priya Sharma for your contribution.
@@ -93,7 +93,8 @@ public class RenderSubContentCacheTransform implements TemplateTransformModel {
}
// This order is taken so that the dataResourceType can be overridden in the transform arguments.
String subDataResourceTypeId = (String)templateRoot.get("subDataResourceTypeId");
- if (UtilValidate.isEmpty(subDataResourceTypeId)) {
+
+ if (UtilValidate.isEmpty(subDataResourceTypeId) && view != null ) {
try {
subDataResourceTypeId = (String) view.get("drDataResourceTypeId");
} catch (IllegalArgumentException e) {
