Subject | Re: [Firebird-Java] NPE in deallocate() |
---|---|
Author | Roman Rokytskyy |
Post date | 2004-09-09T15:26:24Z |
> In one of my tests i got the following exception every time i triedBug. Happens here:
> to get a new Connection. 45 Minutes before everything was working
> fine.
> java.lang.NullPointerException
> at
> org.firebirdsql.pool.PingablePooledConnection.deallocate(PingablePoo
> ledConnection.java:266)at
public void deallocate() {
try {
close(false);
} catch(SQLException ex) {
log.warn("Could not cleanly deallocate connection.", ex);
}
}
The catch clause should look
if (log != null)
log.warn("Could not cleanly deallocate connection.", ex);
Fixed in HEAD. I will backport it to Branch_1_5 and it will be included in
1.5.1 release.
Roman