Commit 97cc90bb authored by skummer's avatar skummer

ZP-157

- fixed: catch NoHierarchyCacheAvailableException

git-svn-id: https://z-push.org/svn/z-push/trunk@1363 b7dd7b3b-3a3c-0410-9da9-bee62a6cc5b5
parent a5126de6
......@@ -168,8 +168,14 @@ class GetItemEstimate extends RequestProcessor {
// Process folder data
//In AS 14 request only collectionid is sent, without class
if (! $spa->HasContentClass() && $spa->HasFolderId())
$spa->SetContentClass(self::$deviceManager->GetFolderClassFromCacheByID($spa->GetFolderId()));
if (! $spa->HasContentClass() && $spa->HasFolderId()) {
try {
$spa->SetContentClass(self::$deviceManager->GetFolderClassFromCacheByID($spa->GetFolderId()));
}
catch (NoHierarchyCacheAvailableException $nhca) {
$spastatus = SYNC_GETITEMESTSTATUS_COLLECTIONINVALID;
}
}
// compatibility mode AS 1.0 - get folderid which was sent during GetHierarchy()
if (! $spa->HasFolderId() && $spa->HasContentClass()) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment