Skip to content

Commit

Permalink
Fix an NPE.
Browse files Browse the repository at this point in the history
  • Loading branch information
spelletier committed Dec 12, 2015
1 parent 0960e75 commit 8904160
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ private WOElement template(WOComponent component) {
WOElement content = component._childTemplate();
WOElement result = null;
String templateName = (_templateName == null) ? null : (String) _templateName.valueInComponent(component);
if (content.getClass() == WODynamicGroup.class) {
if (content != null && content.getClass() == WODynamicGroup.class) {
WODynamicGroup group = (WODynamicGroup) content;
if (templateName == null) {
// MS: If you don't set a template name, then let's construct all the children of
Expand Down

0 comments on commit 8904160

Please sign in to comment.