You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by im...@apache.org on 2007/05/29 09:54:24 UTC
svn commit: r542450 -
/myfaces/orchestra/trunk/core/src/main/java/org/apache/myfaces/orchestra/connectionManager/ConnectionManagerDataSource.java
Author: imario
Date: Tue May 29 00:54:23 2007
New Revision: 542450
URL: http://svn.apache.org/viewvc?view=rev&rev=542450
Log:
fixed NPE
Modified:
myfaces/orchestra/trunk/core/src/main/java/org/apache/myfaces/orchestra/connectionManager/ConnectionManagerDataSource.java
Modified: myfaces/orchestra/trunk/core/src/main/java/org/apache/myfaces/orchestra/connectionManager/ConnectionManagerDataSource.java
URL: http://svn.apache.org/viewvc/myfaces/orchestra/trunk/core/src/main/java/org/apache/myfaces/orchestra/connectionManager/ConnectionManagerDataSource.java?view=diff&rev=542450&r1=542449&r2=542450
==============================================================================
--- myfaces/orchestra/trunk/core/src/main/java/org/apache/myfaces/orchestra/connectionManager/ConnectionManagerDataSource.java (original)
+++ myfaces/orchestra/trunk/core/src/main/java/org/apache/myfaces/orchestra/connectionManager/ConnectionManagerDataSource.java Tue May 29 00:54:23 2007
@@ -59,9 +59,12 @@
{
((Set) borrowedConnections.get()).add(con);
- for (int i = 0; i<listeners.length; i++)
+ if (listeners != null)
{
- listeners[i].borrowConnection(con);
+ for (int i = 0; i<listeners.length; i++)
+ {
+ listeners[i].borrowConnection(con);
+ }
}
}