1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-12-27 13:21:30 +00:00

Fix NPE in FolderActivity#onOptionsItemSelected (fixes #1190) (#1191)

This commit is contained in:
Audrius Butkevicius 2018-07-26 21:01:37 +01:00 committed by GitHub
commit 20922055db
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -572,6 +572,7 @@ public class FolderActivity extends SyncthingActivity
}
return sb.toString();
}
private void initFolder() {
mFolder = new Folder();
mFolder.id = (getIntent().hasExtra(EXTRA_FOLDER_ID))
@ -586,6 +587,7 @@ public class FolderActivity extends SyncthingActivity
*/
mFolder.rescanIntervalS = 3600;
mFolder.paused = false;
mFolder.type = Constants.FOLDER_TYPE_SEND_RECEIVE;
mFolder.versioning = new Folder.Versioning();
}