Author: niallp Date: Thu Jan 15 18:21:38 2009 New Revision: 734891 URL: http://svn.apache.org/viewvc?rev=734891&view=rev Log: Adding a StatementEventListener causes a NullPointerException - found by FindBugs
Modified: commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/cpdsadapter/PooledConnectionImpl.java Modified: commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/cpdsadapter/PooledConnectionImpl.java URL: http://svn.apache.org/viewvc/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/cpdsadapter/PooledConnectionImpl.java?rev=734891&r1=734890&r2=734891&view=diff ============================================================================== --- commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/cpdsadapter/PooledConnectionImpl.java (original) +++ commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/cpdsadapter/PooledConnectionImpl.java Thu Jan 15 18:21:38 2009 @@ -70,7 +70,7 @@ /** * StatementEventListeners */ - private Vector statementEventListeners; + private Vector statementEventListeners = new Vector(); /** * flag set to true, once close() is called.