Author: niallp Date: Tue Feb 21 23:54:57 2006 New Revision: 379724 URL: http://svn.apache.org/viewcvs?rev=379724&view=rev Log: Fix for Bug 38670 - Standalone Tiles NullPointerException when debugging - patch supplied by David DeWolf
Modified: struts/sandbox/trunk/tiles/src/java/org/apache/tiles/ComponentAttribute.java Modified: struts/sandbox/trunk/tiles/src/java/org/apache/tiles/ComponentAttribute.java URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/tiles/src/java/org/apache/tiles/ComponentAttribute.java?rev=379724&r1=379723&r2=379724&view=diff ============================================================================== --- struts/sandbox/trunk/tiles/src/java/org/apache/tiles/ComponentAttribute.java (original) +++ struts/sandbox/trunk/tiles/src/java/org/apache/tiles/ComponentAttribute.java Tue Feb 21 23:54:57 2006 @@ -1,7 +1,7 @@ /* * $Id$ * - * Copyright 1999-2004 The Apache Software Foundation. + * Copyright 1999-2006 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -118,7 +118,10 @@ * Get String representation of this object. */ public String toString() { - return value.toString(); + if (value != null) { + return value.toString(); + } + return null; } public String getType() { --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]