Hi Thomas,

would a "return null" not work in this case? So you can prevent a lookup
on the null reference or do you think that null could be a possible key?

Am Dienstag, den 19.10.2010, 19:41 +0000 schrieb [email protected]:

> Author: tfischer
> Date: Tue Oct 19 19:41:18 2010
> New Revision: 1024374
> 
> URL: http://svn.apache.org/viewvc?rev=1024374&view=rev
> Log:
> fix bug in getTextAttribute()
> 
> Modified:
>     
> db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/generator/source/SourceElement.java
> 
> Modified: 
> db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/generator/source/SourceElement.java
> URL: 
> http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/generator/source/SourceElement.java?rev=1024374&r1=1024373&r2=1024374&view=diff
> ==============================================================================
> --- 
> db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/generator/source/SourceElement.java
>  (original)
> +++ 
> db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/generator/source/SourceElement.java
>  Tue Oct 19 19:41:18 2010
> @@ -320,7 +320,7 @@ public class SourceElement
>       */
>      public Object getTextAttribute()
>      {
> -        return attributes.get(name);
> +        return attributes.get(null);
>      }
>  
>      /**
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 

Reply via email to