mrpdaemon / encdroid

Encdroid is an Android application for accessing EncFS volumes on cloud storage
GNU General Public License v3.0
86 stars 20 forks source link

Crash: NullPointerException in FileChooserActivity #66

Closed mrpdaemon closed 10 years ago

mrpdaemon commented 10 years ago

Reported through Google Play: Caused by: java.lang.NullPointerException at org.mrpdaemon.android.encdroid.FileChooserActivity.fill(FileChooserActivity.java:350) at org.mrpdaemon.android.encdroid.FileChooserActivity.access$0(FileChooserActivity.java:344) at org.mrpdaemon.android.encdroid.FileChooserActivity$FileChooserFillTask.doInBackground(FileChooserActivity.java:483) at org.mrpdaemon.android.encdroid.FileChooserActivity$FileChooserFillTask.doInBackground(FileChooserActivity.java:1)

mrpdaemon commented 10 years ago

We need to save mFileProvider in FileChooserActivity.onRetainNonConfigurationInstance() and restore it when recreating FileChooserActivity if it was previously killed.

mrpdaemon commented 10 years ago

This is no longer a problem - the Google Drive account related changes made this impossible.