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
1 changed files with 2 additions and 0 deletions

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();
}