|
@@ -1933,7 +1933,7 @@ class View {
|
|
|
if ($mount) {
|
|
|
try {
|
|
|
$storage = $mount->getStorage();
|
|
|
- if ($storage->instanceOfStorage('\OCP\Files\Storage\ILockingStorage')) {
|
|
|
+ if ($storage && $storage->instanceOfStorage('\OCP\Files\Storage\ILockingStorage')) {
|
|
|
$storage->acquireLock(
|
|
|
$mount->getInternalPath($absolutePath),
|
|
|
$type,
|
|
@@ -1974,7 +1974,7 @@ class View {
|
|
|
if ($mount) {
|
|
|
try {
|
|
|
$storage = $mount->getStorage();
|
|
|
- if ($storage->instanceOfStorage('\OCP\Files\Storage\ILockingStorage')) {
|
|
|
+ if ($storage && $storage->instanceOfStorage('\OCP\Files\Storage\ILockingStorage')) {
|
|
|
$storage->changeLock(
|
|
|
$mount->getInternalPath($absolutePath),
|
|
|
$type,
|