[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/work/komo/strigi/strigidaemon/bin/daemon
From:       Tobias Koenig <tokoe () kde ! org>
Date:       2011-01-17 16:16:50
Message-ID: 20110117161650.B73B3AC8B5 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1215094 by tokoe:

Do not try to index empty data

CLucene crashes on WinCE if it tries to index empty
data.


 M  +3 -0      interface.cpp  


--- branches/work/komo/strigi/strigidaemon/bin/daemon/interface.cpp #1215093:1215094
@@ -154,12 +154,15 @@
     vector<string> paths;
     paths.push_back(path);
     writer->deleteEntries(paths);
+
+    if (content.size() != 0) {
     AnalyzerConfiguration ic;
     StreamAnalyzer streamindexer(ic);
     StringInputStream sr(&content[0], (int32_t)content.size(), false);
     AnalysisResult idx(path, mtime, *writer, streamindexer);
     idx.index(&sr);
 }
+}
 vector<string>
 Interface::getFieldNames() {
     return manager.indexReader()->fieldNames();
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic