You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Matt Smith <ms...@dorado.com> on 2002/06/03 21:29:07 UTC

Digester - NPE in CallMethodRule constructor?

In CallMethodRule.java, v1.16, line 230:


digester.getClassLoader().loadClass(paramTypes[i]);

is contained in a constructor that does not set the digester. Assumedly the
digester is supposed to be set using the "new" way of maing the association
(addRule), but this constructor accesses the digester before it's been set,
so I think this will always cause an NPE. Am I missing something?

-Matt


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Digester - NPE in CallMethodRule constructor?

Posted by robert burrell donkin <ro...@mac.com>.
this should now be fixed in the latest version in cvs.

- robert

On Monday, June 3, 2002, at 08:29 PM, Matt Smith wrote:

> In CallMethodRule.java, v1.16, line 230:
>
>
> digester.getClassLoader().loadClass(paramTypes[i]);
>
> is contained in a constructor that does not set the digester. Assumedly 
> the
> digester is supposed to be set using the "new" way of maing the 
> association
> (addRule), but this constructor accesses the digester before it's been 
> set,
> so I think this will always cause an NPE. Am I missing something?
>
> -Matt
>
>
> --
> To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.
> org>
> For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.
> org>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Digester - NPE in CallMethodRule constructor?

Posted by robert burrell donkin <ro...@mac.com>.
On Monday, June 3, 2002, at 08:29 PM, Matt Smith wrote:

> In CallMethodRule.java, v1.16, line 230:
>
>
> digester.getClassLoader().loadClass(paramTypes[i]);
>
> is contained in a constructor that does not set the digester. Assumedly 
> the
> digester is supposed to be set using the "new" way of maing the 
> association
> (addRule), but this constructor accesses the digester before it's been 
> set,
> so I think this will always cause an NPE. Am I missing something?

no matt - it was me who was missing something when i converted that class 
to use the 'new' way :)

thanks

- robert


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>