Hi!

Fredrik Borgh wrote:
> > Won't the call to currentState[i].equals(oldState[i]) cause a
> > NullPointerExcpetion if currentState[i] is null?? Since you've used the
> > "or" ( || ), if currentState[i] is null, the first test in the if is not
> > valid. Therefore it jumps to the second, which causes an Exception (or am
> > I missing something??)
> 
> I meant, that since you use "or", if the first statement in the "if" is
> false (if currentState[i] == null), it jumps to check the second. This
> then causes a NullPointerExcpetion.

Hm.. I fail to see the problem. If you have the time, can you be
super-explicit about what you mean? 

Thanks,
  Rickard

-- 
Rickard Öberg

@home: +46 13 177937
Email: [EMAIL PROTECTED]
http://www.telkel.com
http://www.jboss.org
http://www.dreambean.com


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to