You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by ni...@apache.org on 2006/02/22 08:54:59 UTC
svn commit: r379724 -
/struts/sandbox/trunk/tiles/src/java/org/apache/tiles/ComponentAttribute.java
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: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org