You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-java@ibatis.apache.org by Zsolt <zk...@intland.com> on 2006/05/16 10:35:22 UTC

isEmpty question

Hi,

I get an exception if a use "<isEquals ..." and the property is not defined.
Is that a bug or feature?

Zsolt






Re: isEmpty question

Posted by Nathan Maves <Na...@Sun.COM>.
This is a simple java issue.

String string = null;
String string2 = "myString";

string.equals(string2);    <-- bam NPE

That is what you are trying to do in your code.  I would suggest  
using the isNotNull around your isEquals tag.


Nathan

On May 16, 2006, at 2:35 AM, Zsolt wrote:

> Hi,
>
> I get an exception if a use "<isEquals ..." and the property is not  
> defined.
> Is that a bug or feature?
>
> Zsolt
>
>
>
>
>