mirror of
https://github.com/nextcloud/android.git
synced 2024-11-26 15:15:51 +03:00
ReceiveExternalFilesActivity: don't crash if no user present
Signed-off-by: Álvaro Brey Vilas <alvaro.brey@nextcloud.com>
This commit is contained in:
parent
e82fb2c6da
commit
3975839d53
1 changed files with 3 additions and 1 deletions
|
@ -264,7 +264,9 @@ public class ReceiveExternalFilesActivity extends FileActivity
|
|||
super.onSaveInstanceState(outState);
|
||||
outState.putString(KEY_PARENTS, generatePath(mParents));
|
||||
outState.putParcelable(KEY_FILE, mFile);
|
||||
outState.putParcelable(FileActivity.EXTRA_USER, getUser().orElseThrow(RuntimeException::new));
|
||||
if (getUser().isPresent()) {
|
||||
outState.putParcelable(FileActivity.EXTRA_USER, getUser().orElseThrow(RuntimeException::new));
|
||||
}
|
||||
|
||||
Log_OC.d(TAG, "onSaveInstanceState() end");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue