imv: Return an empty enumerator instead of null, as expected by callers

This commit is contained in:
Martin Willi
2014-06-04 15:53:10 +02:00
parent 5388389bef
commit ede10dd974
+1 -1
View File
@@ -219,7 +219,7 @@ METHOD(imv_session_t, create_workitem_enumerator, enumerator_t*,
{ {
if (!this->policy_started) if (!this->policy_started)
{ {
return NULL; return enumerator_create_empty();
} }
return this->workitems->create_enumerator(this->workitems); return this->workitems->create_enumerator(this->workitems);
} }