Fix for plaintext SMS import NPE.

// FREEBIE
This commit is contained in:
Moxie Marlinspike 2015-06-22 18:03:58 -07:00
parent 9fc02c8ce1
commit fd2fe9ebd7

View File

@ -105,11 +105,13 @@ public class ApplicationMigrationService extends Service
private void setState(ImportState state) {
this.state = state;
if (this.handler != null) {
Handler handler = this.handler.get();
if (handler != null) {
handler.obtainMessage(state.state, state.progress).sendToTarget();
}
}
if (state.progress != null && state.progress.secondaryComplete == 0) {
updateBackgroundNotification(state.progress.primaryTotal, state.progress.primaryComplete);