Commit 3ab6d471 authored by Canh Ngo's avatar Canh Ngo

HSTCONFIGEDIT-169: added error log when failed to load bean model from component's model

parent c3259172
......@@ -68,8 +68,11 @@ public abstract class BasicEditorPlugin<K extends EditorBean> extends EditorPlug
IModel model = getModel();
if (model instanceof JcrNodeModel) {
return dao.load((JcrNodeModel) model);
} else {
log.error("Cannot load bean object model due to the model of '{}' is not the JcrNodeModel object",
BasicEditorPlugin.this.getClass().getName());
return null;
}
return null;
}
@Override
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment