mirror of
https://github.com/nextcloud/android.git
synced 2024-11-26 23:28:42 +03:00
npe in file owner after upgrade (#4191)
npe in file owner after upgrade
This commit is contained in:
commit
49d038d858
1 changed files with 1 additions and 2 deletions
|
@ -49,7 +49,6 @@ import com.bumptech.glide.request.target.BitmapImageViewTarget;
|
||||||
import com.nextcloud.client.account.UserAccountManager;
|
import com.nextcloud.client.account.UserAccountManager;
|
||||||
import com.nextcloud.client.preferences.AppPreferences;
|
import com.nextcloud.client.preferences.AppPreferences;
|
||||||
import com.owncloud.android.R;
|
import com.owncloud.android.R;
|
||||||
import com.owncloud.android.authentication.AccountUtils;
|
|
||||||
import com.owncloud.android.datamodel.FileDataStorageManager;
|
import com.owncloud.android.datamodel.FileDataStorageManager;
|
||||||
import com.owncloud.android.datamodel.OCFile;
|
import com.owncloud.android.datamodel.OCFile;
|
||||||
import com.owncloud.android.datamodel.ThumbnailsCacheManager;
|
import com.owncloud.android.datamodel.ThumbnailsCacheManager;
|
||||||
|
@ -366,7 +365,7 @@ public class OCFileListAdapter extends RecyclerView.Adapter<RecyclerView.ViewHol
|
||||||
ArrayList<String> sharees = (ArrayList<String>) file.getSharees();
|
ArrayList<String> sharees = (ArrayList<String>) file.getSharees();
|
||||||
|
|
||||||
// use fileOwner if not oneself, then add at first
|
// use fileOwner if not oneself, then add at first
|
||||||
if (!fileOwner.equals(userId) && !sharees.contains(fileOwner)) {
|
if (fileOwner != null && !fileOwner.equals(userId) && !sharees.contains(fileOwner)) {
|
||||||
sharees.add(fileOwner);
|
sharees.add(fileOwner);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue