forward port of a minor bug fix from HEAD
authormh <mh>
Tue, 10 Dec 2002 09:51:22 +0000 (09:51 +0000)
committermh <mh>
Tue, 10 Dec 2002 09:51:22 +0000 (09:51 +0000)
source/mircoders/entity/EntityImages.java

index 942cd12..75388d0 100755 (executable)
@@ -54,7 +54,7 @@ import mir.storage.*;
  * Diese Klasse enthält die Daten eines MetaObjekts
  *
  * @author RK, mh
- * @version $Id: EntityImages.java,v 1.6.4.5 2002/12/05 08:40:18 mh Exp $
+ * @version $Id: EntityImages.java,v 1.6.4.6 2002/12/10 09:51:22 mh Exp $
  */
 
 
@@ -173,7 +173,8 @@ public class EntityImages extends EntityUploadedMedia
           // get rid of the temp. file
           f.delete();
         } catch (Exception e) {;}
-                               theStorageObject.freeConnection(con,pstmt);
+        if (con!=null)
+          theStorageObject.freeConnection(con,pstmt);
       }
                }
        }