You are viewing a plain text version of this content. The canonical link for it is here.
Posted to wsrp4j-dev@portals.apache.org by dl...@apache.org on 2006/12/25 22:54:34 UTC

svn commit: r490184 - /portals/wsrp4j/trunk/persistence-db/src/java/org/apache/wsrp4j/persistence/db/driver/ProducerPersistentFactoryImpl.java

Author: dlouzan
Date: Mon Dec 25 13:54:33 2006
New Revision: 490184

URL: http://svn.apache.org/viewvc?view=rev&rev=490184
Log:
Corrected a bug where the pdo was being used before being initialized.

Modified:
    portals/wsrp4j/trunk/persistence-db/src/java/org/apache/wsrp4j/persistence/db/driver/ProducerPersistentFactoryImpl.java

Modified: portals/wsrp4j/trunk/persistence-db/src/java/org/apache/wsrp4j/persistence/db/driver/ProducerPersistentFactoryImpl.java
URL: http://svn.apache.org/viewvc/portals/wsrp4j/trunk/persistence-db/src/java/org/apache/wsrp4j/persistence/db/driver/ProducerPersistentFactoryImpl.java?view=diff&rev=490184&r1=490183&r2=490184
==============================================================================
--- portals/wsrp4j/trunk/persistence-db/src/java/org/apache/wsrp4j/persistence/db/driver/ProducerPersistentFactoryImpl.java (original)
+++ portals/wsrp4j/trunk/persistence-db/src/java/org/apache/wsrp4j/persistence/db/driver/ProducerPersistentFactoryImpl.java Mon Dec 25 13:54:33 2006
@@ -131,11 +131,11 @@
         }
         
         ServiceDescriptionList pdo = null;
-        pdo.setPersistentInformation(new PersistentInformationImpl());
         
         try {
             
             pdo = new ServiceDescriptionList();
+            pdo.setPersistentInformation(new PersistentInformationImpl());
             
         } catch (Exception e) {
             /* Error while accesing DB */
@@ -161,11 +161,11 @@
         }
         
         ConsumerPortletRegistrationList pdo = null;
-        pdo.setPersistentInformation(new PersistentInformationImpl());
         
         try {
             
             pdo = new ConsumerPortletRegistrationList();
+            pdo.setPersistentInformation(new PersistentInformationImpl());
             
         } catch (Exception e) {
             /* Error while accesing DB */