[dna-commits] DNA SVN: r1540 - trunk/dna-graph/src/main/java/org/jboss/dna/graph/search.
dna-commits at lists.jboss.org
dna-commits at lists.jboss.org
Wed Jan 6 19:14:25 EST 2010
Author: rhauch
Date: 2010-01-06 19:14:25 -0500 (Wed, 06 Jan 2010)
New Revision: 1540
Modified:
trunk/dna-graph/src/main/java/org/jboss/dna/graph/search/SearchEngineIndexer.java
Log:
DNA-617 Fix for the NPE in the search indexer (in the case when there isn't even a root in the source).
Modified: trunk/dna-graph/src/main/java/org/jboss/dna/graph/search/SearchEngineIndexer.java
===================================================================
--- trunk/dna-graph/src/main/java/org/jboss/dna/graph/search/SearchEngineIndexer.java 2010-01-06 23:50:22 UTC (rev 1539)
+++ trunk/dna-graph/src/main/java/org/jboss/dna/graph/search/SearchEngineIndexer.java 2010-01-07 00:14:25 UTC (rev 1540)
@@ -288,6 +288,7 @@
Location topNode = locationIter.next();
assert topNode.equals(startingLocation);
Map<Name, Property> properties = readSubgraph.getPropertiesFor(topNode);
+ if (properties == null) return;
if (startingLocation.getPath().isRoot()) {
// The properties of the root node generally don't include the primary type, but we need to add it here ...
Property rootPrimaryType = context.getPropertyFactory().create(JcrLexicon.PRIMARY_TYPE, DnaLexicon.ROOT);
More information about the dna-commits
mailing list