Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

preventing that an empty pnd is inserted into the vocabularies

Michael Peter Christen223a5440ab9f
diff --git a/source/net/yacy/document/LibraryProvider.java b/source/net/yacy/document/LibraryProvider.java
index 2c0acc83a..c0bf959f8 100644
--- a/source/net/yacy/document/LibraryProvider.java
+++ b/source/net/yacy/document/LibraryProvider.java
@@ -233,7 +233,7 @@ public class LibraryProvider {
// store the term into the vocabulary map
map.put(term, new SOTuple(Tagging.normalizeTerm(term), subject));
}
- try {
+ if (map.size() > 0) try {
Log.logInfo("LibraryProvider", "adding vocabulary to autotagging");
Tagging pndVoc = new Tagging("Persons", null, objectspace, map);
autotagging.addVocabulary(pndVoc);