DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38670>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38670

           Summary: [tiles-core] Standalone Tiles NullPointerException when
                    debugging
           Product: Struts
           Version: Unknown
          Platform: All
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Tiles
        AssignedTo: dev@struts.apache.org
        ReportedBy: [EMAIL PROTECTED]


The toString() method of ComponentAttribute returns value.toString() and thus
will throw a null pointer exception when the value is null.  This occurs most
frequently when digester/beanutil trace logging is enabled, due to the fact that
the setProperty method passes the bean (ComponentAttribute) to
StringBuffer.append():

public class BeanUtilBean {
. . .
   public void setProperty(Object bean, String name, Object value)
. . .
        if (log.isTraceEnabled()) {
            StringBuffer sb = new StringBuffer("  setProperty(");
            sb.append(bean);
. . .



The attached patch will check for null values and return null in value is null.

This bug was caught using shale-core and shale-tiles along with a recent nightly
build of tiles-core.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to