db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject cvs commit: db-ojb/src/java/org/apache/ojb/broker/cache ObjectCachePerClassImpl.java
Date Tue, 20 Jul 2004 22:31:02 GMT
arminw      2004/07/20 15:31:02

  Modified:    src/java/org/apache/ojb/broker/cache
                        ObjectCachePerClassImpl.java
  Log:
  do 'null' check for Identity#getObjectsRealClass before
  lookup per class cache
  
  Revision  Changes    Path
  1.8       +9 -2      db-ojb/src/java/org/apache/ojb/broker/cache/ObjectCachePerClassImpl.java
  
  Index: ObjectCachePerClassImpl.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/cache/ObjectCachePerClassImpl.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- ObjectCachePerClassImpl.java	20 Jul 2004 18:09:16 -0000	1.7
  +++ ObjectCachePerClassImpl.java	20 Jul 2004 22:31:02 -0000	1.8
  @@ -44,7 +44,14 @@
   
       public ObjectCache getCache(Identity oid, Object obj, int methodCall)
       {
  -        return getCachePerClass(oid.getObjectsRealClass(), methodCall);
  +        if(oid.getObjectsRealClass() == null)
  +        {
  +            return null;
  +        }
  +        else
  +        {
  +            return getCachePerClass(oid.getObjectsRealClass(), methodCall);
  +        }
       }
   
       /**
  
  
  

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


Mime
View raw message