Commits

Anonymous committed 54fbdde

better logging that doesn't break tests

git-svn-id: http://svn.opensymphony.com/svn/xwork/trunk@673e221344d-f017-0410-9bd5-d282ab1896d7

Comments (0)

Files changed (1)

src/java/com/opensymphony/xwork/util/InstantiatingNullHandler.java

 
 
     public Object nullMethodResult(Map context, Object target, String methodName, Object[] args) {
+        if (LOG.isDebugEnabled()) {
+            LOG.debug("Entering nullMethodResult ");
+        }
+
         return null;
     }
 
     public Object nullPropertyValue(Map context, Object target, Object property) {
-    	boolean c = OgnlContextState.isCreatingNullObjects(context);
+        if (LOG.isDebugEnabled()) {
+            LOG.debug("Entering nullPropertyValue [target="+target+", property="+property+"]");
+        }
+
+        boolean c = OgnlContextState.isCreatingNullObjects(context);
 
         if (!c) {
             return null;