diff --git a/corelib/src/VWDictionary.cpp b/corelib/src/VWDictionary.cpp index c2d955ec..2321c847 100644 --- a/corelib/src/VWDictionary.cpp +++ b/corelib/src/VWDictionary.cpp @@ -571,7 +571,8 @@ void VWDictionary::update() else if(_strategy >= kNNBruteForce && _notIndexedWords.size() && _removedIndexedWords.size() == 0 && - _visualWords.size()) + _visualWords.size() && + _dataTree.rows) { //just add not indexed words int i = _dataTree.rows;