You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Robert Taylor <rt...@mulework.com> on 2002/09/24 21:54:48 UTC

BeanUtils.clone() throwing NPE

I have a Struts application in which I have a need to clone a DynaBean. I'm
using BeanUtils.clone() and it is throwing an NPE (NullPointerException).
Further investigation into the stack trace reveals this is happening in
PropertyUtils.setSimpleProperty(). Any idea why this would happen? I think
it is reasonable to assume that if I pass in a non-null object, then there
should be no problem getting a clone of that object. The API doesn't state
anything about NPE being thrown.


robert


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