You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by "Craig McClanahan (JIRA)" <ji...@apache.org> on 2006/04/26 08:14:49 UTC

[jira] Moved: (SHALE-27) [tiles-core] Standalone Tiles NullPointerException when debugging

     [ http://issues.apache.org/struts/browse/SHALE-27?page=all ]

Craig McClanahan moved STR-2777 to SHALE-27:
--------------------------------------------

      Project: Shale  (was: Struts Action 1)
          Key: SHALE-27  (was: STR-2777)
    Component:     (was: Tiles)
      Version:     (was: Unknown)
    Assign To:     (was: Struts Developer Mailing List)

> [tiles-core] Standalone Tiles NullPointerException when debugging
> -----------------------------------------------------------------
>
>          Key: SHALE-27
>          URL: http://issues.apache.org/struts/browse/SHALE-27
>      Project: Shale
>         Type: Bug

>  Environment: Operating System: other
> Platform: All
>     Reporter: David H. DeWolf
>  Attachments: ComponentAttribute.patch
>
> 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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org