From a7f0adf6fa3abef5fdcac66ecc193733f4e67c2f Mon Sep 17 00:00:00 2001 From: orbiter Date: Mon, 30 Jan 2006 12:50:40 +0000 Subject: [PATCH] bugfix in entity iterator git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1490 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/plasma/plasmaWordIndexEntity.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/de/anomic/plasma/plasmaWordIndexEntity.java b/source/de/anomic/plasma/plasmaWordIndexEntity.java index 6396ba18c..2a0b4083c 100644 --- a/source/de/anomic/plasma/plasmaWordIndexEntity.java +++ b/source/de/anomic/plasma/plasmaWordIndexEntity.java @@ -207,7 +207,9 @@ public final class plasmaWordIndexEntity { public final class dbenum implements Iterator { Iterator i; public dbenum(boolean up) { - try { + if (theIndex == null) { + i = null; + } else try { i = theIndex.nodeIterator(up, false); } catch (kelondroException e) { e.printStackTrace();