fixed bug in search with size in MB. Caused crash due to deserialization error.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4347 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2011-06-28 08:18:54 +00:00
parent a9b85c83ae
commit e77913914d
2 changed files with 43 additions and 36 deletions

View file

@ -1918,6 +1918,9 @@ void RsTurtleRegExpSearchRequestItem::performLocalSearch(std::list<TurtleFileInf
// to do: split search string into words.
Expression *exp = LinearizedExpression::toExpr(expr) ;
if(exp == NULL)
return ;
// now, search!
rsFiles->SearchBoolExp(exp,initialResults,DIR_FLAGS_LOCAL | DIR_FLAGS_NETWORK_WIDE);