taylor      2004/02/28 22:01:12

  Modified:    
components/persistence/src/java/org/apache/jetspeed/components/persistence/store/ojb/otm
                        OTMStoreImpl.java
  Log:
  extra check for null
  
  Revision  Changes    Path
  1.4       +4 -2      
jakarta-jetspeed-2/components/persistence/src/java/org/apache/jetspeed/components/persistence/store/ojb/otm/OTMStoreImpl.java
  
  Index: OTMStoreImpl.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-jetspeed-2/components/persistence/src/java/org/apache/jetspeed/components/persistence/store/ojb/otm/OTMStoreImpl.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- OTMStoreImpl.java 25 Feb 2004 16:06:40 -0000      1.3
  +++ OTMStoreImpl.java 29 Feb 2004 06:01:12 -0000      1.4
  @@ -120,8 +120,10 @@
               {
                   tx.commit();
               }
  -
  -            OTMConn.close();
  +            if (OTMConn != null)
  +            {
  +                OTMConn.close();
  +            }
           }
           catch (RuntimeException re)
           {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to