diff --git a/apps/files_trashbin/lib/backgroundjob/expiretrash.php b/apps/files_trashbin/lib/backgroundjob/expiretrash.php
index 7f4f4823918a5f2cae1b78027c82d9b7e0aff3e8..4ee0658840bd8f565e6b665153502a9b9db37fe4 100644
--- a/apps/files_trashbin/lib/backgroundjob/expiretrash.php
+++ b/apps/files_trashbin/lib/backgroundjob/expiretrash.php
@@ -120,6 +120,12 @@ class ExpireTrash extends \OC\BackgroundJob\TimedJob {
 			return false;
 		}
 
+		//Check if this user has a trashbin directory
+		$view = new \OC\Files\View('/' . $user);
+		if (!$view->is_dir('/files_trashbin/files')){
+			return false;
+		}
+
 		\OC_Util::tearDownFS();
 		\OC_Util::setupFS($user);