You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stanbol.apache.org by og...@apache.org on 2011/05/12 18:51:45 UTC

svn commit: r1102376 - /incubator/stanbol/trunk/entityhub/yard/clerezza/src/main/java/org/apache/stanbol/entityhub/yard/clerezza/impl/ClerezzaYard.java

Author: ogrisel
Date: Thu May 12 16:51:44 2011
New Revision: 1102376

URL: http://svn.apache.org/viewvc?rev=1102376&view=rev
Log:
fixed potential NPE in ClerezzaYard

Modified:
    incubator/stanbol/trunk/entityhub/yard/clerezza/src/main/java/org/apache/stanbol/entityhub/yard/clerezza/impl/ClerezzaYard.java

Modified: incubator/stanbol/trunk/entityhub/yard/clerezza/src/main/java/org/apache/stanbol/entityhub/yard/clerezza/impl/ClerezzaYard.java
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/entityhub/yard/clerezza/src/main/java/org/apache/stanbol/entityhub/yard/clerezza/impl/ClerezzaYard.java?rev=1102376&r1=1102375&r2=1102376&view=diff
==============================================================================
--- incubator/stanbol/trunk/entityhub/yard/clerezza/src/main/java/org/apache/stanbol/entityhub/yard/clerezza/impl/ClerezzaYard.java (original)
+++ incubator/stanbol/trunk/entityhub/yard/clerezza/src/main/java/org/apache/stanbol/entityhub/yard/clerezza/impl/ClerezzaYard.java Thu May 12 16:51:44 2011
@@ -354,15 +354,12 @@ public class ClerezzaYard extends Abstra
         return added;
     }
     protected final Representation store(Representation representation,boolean allowCreate,boolean canNotCreateIsError) throws IllegalArgumentException, YardException{
-        log.info("store Representation "+representation.getId());
-//        log.info("  > entityhub size: "+graph.size());
         if(representation == null) {
             return null;
         }
+        log.info("store Representation " + representation.getId());
         if(isRepresentation(representation.getId())){
-//            log.info("  > remove previous version");
             remove(representation.getId());
-//            log.info("  > entityhub size: "+graph.size());
         } else if(!allowCreate){
             if(canNotCreateIsError) {
                 throw new IllegalArgumentException("Parsed Representation "+representation.getId()+" in not managed by this Yard "+getName()+"(id="+getId()+")");