1
0
Fork 0

Fixed another failed nullptr handling in LogicalCollection cluster case.

This commit is contained in:
Michael Hackstein 2016-08-19 11:27:44 +02:00
parent 68faea4ce2
commit 9e0d8ab477
1 changed files with 4 additions and 1 deletions

View File

@ -165,7 +165,10 @@ TRI_col_type_e CollectionNameResolver::getCollectionTypeCluster(
// We have to look up the collection info:
ClusterInfo* ci = ClusterInfo::instance();
auto cinfo = ci->getCollection(_vocbase->name(), name);
return cinfo->type();
if (cinfo != nullptr) {
return cinfo->type();
}
return TRI_COL_TYPE_UNKNOWN;
}
//////////////////////////////////////////////////////////////////////////////