> 
> >Also, connection.close() in the catch block isn't flagged as 
> a possible 
> >
> >NPE.
> >
> But if connection is null, then connection.createStatement() 
> will throw 
> an NPE and therefore no SQLException can be thrown.  So if 
> you get into 
> the catch block connection cannot be null.  Right?  Or am I just too 
> tired to think straight right now?
> 

You may be tired but you are still thinking straight :) 

I misunderstood what the Inspection warning "x == null is always 
true/false" meant.

Carlos


-- 
Carlos Costa e Silva <[EMAIL PROTECTED]>


_______________________________________________
Eap-list mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-list

Reply via email to