npe in file owner after upgrade

Signed-off-by: tobiasKaminsky <[email protected]>
This commit is contained in:
tobiasKaminsky committed 2019-07-01 12:19:47 +02:00
1 parent 3a7755e447
commit b5e69db76a
1 file changed
+1 -2
@@ -49,7 +49,6 @@ import com.bumptech.glide.request.target.BitmapImageViewTarget;
import com.nextcloud.client.account.UserAccountManager;
import com.nextcloud.client.preferences.AppPreferences;
import com.owncloud.android.R;
import com.owncloud.android.authentication.AccountUtils;
import com.owncloud.android.datamodel.FileDataStorageManager;
import com.owncloud.android.datamodel.OCFile;
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();
// 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);
}