Improve Commons API
[lgpl/argeo-commons.git] / org.argeo.cms.ui / src / org / argeo / cms / util / SimpleErgonomics.java
index a16587a2268d7c864bdcabc2287fba4329496722..b7b76e4e686e05bbfc1b91875733abe8cd1dd471 100644 (file)
@@ -111,8 +111,9 @@ public class SimpleErgonomics extends AbstractCmsEntryPoint {
                try {
                        Node node = getNode();
                        if (node == null)
-                               throw new CmsException("Context cannot be null");
-                       uiProvider.createUi(bodyArea, node);
+                               log.error("Context cannot be null");
+                       else
+                               uiProvider.createUi(bodyArea, node);
                } catch (RepositoryException e) {
                        throw new CmsException("Cannot refresh body", e);
                }