Skip to content

crash on mms export #230

@farfromrefug

Description

@farfromrefug

I get a crash while trying to export my sms/mms. It happens at the end while exporting mms.

02-04 11:30:14.696 17391 17391 E AndroidRuntime: Process: com.github.tmo1.sms_ie, PID: 17391
02-04 11:30:14.696 17391 17391 E AndroidRuntime: java.lang.NullPointerException: address.getString(addressIndex) must not be null
02-04 11:30:14.696 17391 17391 E AndroidRuntime: 	at C0.f.b(SourceFile:41)
02-04 11:30:14.696 17391 17391 E AndroidRuntime: 	at H0.y.e(SourceFile:17)
02-04 11:30:14.696 17391 17391 E AndroidRuntime: 	at p1.b.c(SourceFile:9)
02-04 11:30:14.696 17391 17391 E AndroidRuntime: 	at D1.z.run(SourceFile:117)
02-04 11:30:14.696 17391 17391 E AndroidRuntime: 	at B.e.run(SourceFile:363)
02-04 11:30:14.696 17391 17391 E AndroidRuntime: 	at K1.j.run(SourceFile:3)
02-04 11:30:14.696 17391 17391 E AndroidRuntime: 	at K1.a.run(SourceFile:92)
02-04 11:30:14.696 17391 17391 E AndroidRuntime: 	Suppressed: I1.g: [c0{Cancelling}@df729ea, Dispatchers.Main]

My guess would be that it happens because of the fact that i actually first imported an old backup of mine and that i now am trying to export with newly added messages. Something must not be "filled" from the imported backup.

I cant create a sample to reproduce because i dont know which part of the data is corrupted i have more than 15000 messages :s
However the error seems pretty clear. I would gues the issue is here

appContext, displayNames, address.getString(addressIndex)


lookupDisplayName expect address to be not null. I ll test and create a PR

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions