Merge pull request #11518 from nextmcloud/nmc/1939-syncFolderRuntimeException

User check added when sync folder runs after user clears the data.
This commit is contained in:
Tobias Kaminsky 2023-04-21 15:19:46 +02:00 committed by GitHub
commit 043f6306dd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,7 +11,7 @@
* Copyright (C) 2016 ownCloud Inc.
* Copyright (C) 2018 Andy Scherzinger
* Copyright (C) 2019 Chris Narkiewicz <hello@ezaquarii.com>
* Copyright (C) 2022 TSI-mc
* Copyright (C) 2023 TSI-mc
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2,
@ -2009,7 +2009,7 @@ public class FileDisplayActivity extends FileActivity
// the execution is slightly delayed to allow the activity get the window focus if it's being started
// or if the method is called from a dialog that is being dismissed
if (TextUtils.isEmpty(searchQuery)) {
if (TextUtils.isEmpty(searchQuery) && getUser().isPresent()) {
getHandler().postDelayed(
new Runnable() {
@Override