portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r332833 - /portals/jetspeed-2/trunk/components/rdbms/src/java/org/apache/jetspeed/components/rdbms/ojb/ConnectionRepositoryEntry.java
Date Sat, 12 Nov 2005 20:16:48 GMT
Author: ate
Date: Sat Nov 12 12:16:32 2005
New Revision: 332833

URL: http://svn.apache.org/viewcvs?rev=332833&view=rev
Log:
Small fix to prevent NPE when jdc.getDbms() returns null
Contributed by Chris Schaefer

Modified:
    portals/jetspeed-2/trunk/components/rdbms/src/java/org/apache/jetspeed/components/rdbms/ojb/ConnectionRepositoryEntry.java

Modified: portals/jetspeed-2/trunk/components/rdbms/src/java/org/apache/jetspeed/components/rdbms/ojb/ConnectionRepositoryEntry.java
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/components/rdbms/src/java/org/apache/jetspeed/components/rdbms/ojb/ConnectionRepositoryEntry.java?rev=332833&r1=332832&r2=332833&view=diff
==============================================================================
--- portals/jetspeed-2/trunk/components/rdbms/src/java/org/apache/jetspeed/components/rdbms/ojb/ConnectionRepositoryEntry.java
(original)
+++ portals/jetspeed-2/trunk/components/rdbms/src/java/org/apache/jetspeed/components/rdbms/ojb/ConnectionRepositoryEntry.java
Sat Nov 12 12:16:32 2005
@@ -282,7 +282,7 @@
 
         jdbcMetadataUtils.fillJCDFromDataSource(jcd, ds, null, null);
         
-        if (platform == null && jcd.getDbms().equals (JdbcMetadataUtils.PLATFORM_ORACLE))
{
+        if (platform == null && JdbcMetadataUtils.PLATFORM_ORACLE.equals(jcd.getDbms()))
{
             // Postprocess to find Oracle version.
             updateOraclePlatform (jcd, ds);
         }



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message