Revision: 38266
Author:   mnour
Date:     2013-02-07 14:24:09 +0100 (Thu, 07 Feb 2013)
Log Message:
-----------
HSTTWO-2451: Make sure the HST does not throw a class cast exception on 
HippoFolder.getHippoDocument when the folder is a fac nav resultset containing 
folders as result

   - Reviewed the change and there were minor issues in a couple of log 
messages format (Fixed)

Modified Paths:
--------------
    
hippo-cms7/site-toolkit/trunk/content-beans/src/main/java/org/hippoecm/hst/content/beans/standard/HippoFolder.java

Modified: 
hippo-cms7/site-toolkit/trunk/content-beans/src/main/java/org/hippoecm/hst/content/beans/standard/HippoFolder.java
===================================================================
--- 
hippo-cms7/site-toolkit/trunk/content-beans/src/main/java/org/hippoecm/hst/content/beans/standard/HippoFolder.java
  2013-02-07 12:09:42 UTC (rev 38265)
+++ 
hippo-cms7/site-toolkit/trunk/content-beans/src/main/java/org/hippoecm/hst/content/beans/standard/HippoFolder.java
  2013-02-07 13:24:09 UTC (rev 38266)
@@ -201,14 +201,14 @@
                     if(o instanceof HippoDocumentBean) {
                         return (HippoDocumentBean)o;
                     } else {
-                        log.warn("Cannot return HippoDocument for. Return null 
'{}'", node.getPath());
+                        log.warn("Cannot return HippoDocument for  '{}'. 
Return null", node.getPath());
                     }
                 } 
                 return null;
             } else if(node.getParent().isNodeType(HippoNodeType.NT_HANDLE) || 
node.getParent().isNodeType(HippoNodeType.NT_FACETRESULT)) {
                 Object hippoDoc = objectConverter.getObject(node);
                 if (hippoDoc == null) {
-                    log.warn("Cannot return HippoDocument for. Return null 
'{}'", node.getPath());
+                    log.warn("Cannot return HippoDocument for '{}'. Return 
null", node.getPath());
                 }
                 if (!(hippoDoc instanceof HippoDocument)) {
                     log.info("Cannot bind '{}' to a HippoDocument. Return 
null.", node.getPath());

_______________________________________________
Hippocms-svn mailing list
[email protected]
https://lists.onehippo.org/mailman/listinfo/hippocms-svn

Reply via email to