Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash when importing .json file #14

Closed
thfi opened this issue Jan 6, 2022 · 3 comments
Closed

Crash when importing .json file #14

thfi opened this issue Jan 6, 2022 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@thfi
Copy link

thfi commented Jan 6, 2022

When importing a .json file made as a backup on another phone, SMS Import/Export 1.3 (installed via F-Droid) immediately crashes without any error message.
Using a custom ROM (crdroid), I get this error log:

time: 1641484413465
msg: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.Uri.getAuthority()' on a null object reference
stacktrace: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.Uri.getAuthority()' on a null object reference
	at android.os.Parcel.createExceptionOrNull(Parcel.java:2379)
	at android.os.Parcel.createException(Parcel.java:2357)
	at android.os.Parcel.readException(Parcel.java:2340)
	at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:190)
	at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:142)
	at android.content.ContentProviderProxy.insert(ContentProviderNative.java:549)
	at android.content.ContentResolver.insert(ContentResolver.java:2149)
	at android.content.ContentResolver.insert(ContentResolver.java:2111)
	at com.github.tmo1.sms_ie.MainActivity$importJson$2.invokeSuspend(MainActivity.kt:519)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)
@tmo1
Copy link
Owner

tmo1 commented Jan 6, 2022

Thanks for reporting this - it's probably a duplicate of #11 and #12, in which case it has already been fixed in the repository. The next release will contain the fix, and in the meantime an APK is available here.

@tmo1
Copy link
Owner

tmo1 commented Jan 6, 2022

Duplicate of #11

@tmo1 tmo1 marked this as a duplicate of #11 Jan 6, 2022
@tmo1 tmo1 self-assigned this Jan 6, 2022
@tmo1
Copy link
Owner

tmo1 commented Jan 6, 2022

Duplicate of #12

@tmo1 tmo1 marked this as a duplicate of #12 Jan 6, 2022
@tmo1 tmo1 added the bug Something isn't working label Jan 6, 2022
@tmo1 tmo1 closed this as completed Jan 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants