You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stanbol.apache.org by bd...@apache.org on 2011/04/05 15:11:39 UTC
svn commit: r1089027 -
/incubator/stanbol/trunk/entityhub/generic/core/src/main/java/org/apache/stanbol/entityhub/core/impl/ReferencedSiteImpl.java
Author: bdelacretaz
Date: Tue Apr 5 13:11:39 2011
New Revision: 1089027
URL: http://svn.apache.org/viewvc?rev=1089027&view=rev
Log:
avoid NPE
Modified:
incubator/stanbol/trunk/entityhub/generic/core/src/main/java/org/apache/stanbol/entityhub/core/impl/ReferencedSiteImpl.java
Modified: incubator/stanbol/trunk/entityhub/generic/core/src/main/java/org/apache/stanbol/entityhub/core/impl/ReferencedSiteImpl.java
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/entityhub/generic/core/src/main/java/org/apache/stanbol/entityhub/core/impl/ReferencedSiteImpl.java?rev=1089027&r1=1089026&r2=1089027&view=diff
==============================================================================
--- incubator/stanbol/trunk/entityhub/generic/core/src/main/java/org/apache/stanbol/entityhub/core/impl/ReferencedSiteImpl.java (original)
+++ incubator/stanbol/trunk/entityhub/generic/core/src/main/java/org/apache/stanbol/entityhub/core/impl/ReferencedSiteImpl.java Tue Apr 5 13:11:39 2011
@@ -405,6 +405,9 @@ public class ReferencedSiteImpl implemen
}
}
QueryResultList<String> entityIds;
+ if(entitySearcher == null) {
+ throw new ReferencedSiteException(String.format("EntitySearcher %s not available for remote site %s!",entitySearcherComponentName,queryUri));
+ }
try {
entityIds = entitySearcher.findEntities(query);
} catch (IOException e) {