Subject Re: [Firebird-Java] NPE in deallocate()
Author Roman Rokytskyy
> In one of my tests i got the following exception every time i tried
> 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

Bug. Happens here:

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