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,10 +105,12 @@ public class ApplicationMigrationService extends Service
private void setState(ImportState state) {
this.state = state;
Handler handler = this.handler.get();
if (this.handler != null) {
Handler handler = this.handler.get();
if (handler != null) {
handler.obtainMessage(state.state, state.progress).sendToTarget();
if (handler != null) {
handler.obtainMessage(state.state, state.progress).sendToTarget();
}
}
if (state.progress != null && state.progress.secondaryComplete == 0) {