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

Impossible to create shortcut due to merge #680 #689

Closed
Altonss opened this issue Dec 16, 2021 · 3 comments
Closed

Impossible to create shortcut due to merge #680 #689

Altonss opened this issue Dec 16, 2021 · 3 comments
Assignees
Labels
type: bug Something isn't working

Comments

@Altonss
Copy link
Contributor

Altonss commented Dec 16, 2021

This issue has been reported in #669 . Impossible to create shortcut. See log of the master branch when trying to create shortcut on android 5.0.2 device:
E/AndroidRuntime: FATAL EXCEPTION: main Process: me.hackerchick.catima.debug, PID: 23559 java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{me.hackerchick.catima.debug/protect.card_locker.CardShortcutConfigure}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.database.sqlite.SQLiteDatabase android.content.Context.openOrCreateDatabase(java.lang.String, int, android.database.sqlite.SQLiteDatabase$CursorFactory, android.database.DatabaseErrorHandler)' on a null object reference at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2335) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2544) at android.app.ActivityThread.access$900(ActivityThread.java:163) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1367) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5608) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1397) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1192) Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'android.database.sqlite.SQLiteDatabase android.content.Context.openOrCreateDatabase(java.lang.String, int, android.database.sqlite.SQLiteDatabase$CursorFactory, android.database.DatabaseErrorHandler)' on a null object reference at android.content.ContextWrapper.openOrCreateDatabase(ContextWrapper.java:274) at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:223) at android.database.sqlite.SQLiteOpenHelper.getReadableDatabase(SQLiteOpenHelper.java:187) at protect.card_locker.CardShortcutConfigure.<init>(CardShortcutConfigure.java:21) at java.lang.reflect.Constructor.newInstance(Native Method) at java.lang.Class.newInstance(Class.java:1656) at android.app.Instrumentation.newActivity(Instrumentation.java:1071) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2325) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2544)  at android.app.ActivityThread.access$900(ActivityThread.java:163)  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1367)  at android.os.Handler.dispatchMessage(Handler.java:102)  at android.os.Looper.loop(Looper.java:135)  at android.app.ActivityThread.main(ActivityThread.java:5608)  at java.lang.reflect.Method.invoke(Native Method)  at java.lang.reflect.Method.invoke(Method.java:372)  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1397)  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1192)  I/Process: Sending signal. PID: 23559 SIG: 9

@TheLastProject TheLastProject added type: bug Something isn't working android: 5 and removed android: 5 labels Dec 16, 2021
@TheLastProject
Copy link
Member

Oh actually I can reproduce it on newer Android too, I was testing an old version, oops.

@TheLastProject TheLastProject self-assigned this Dec 16, 2021
@Altonss
Copy link
Contributor Author

Altonss commented Dec 16, 2021

Haha no problem xD
We might also test if this bug is not occuring in other parts of the app, but for the moment that's the only place I found. I didn't found any solution to this issue on the web yet, so I will continue searching :)

@Altonss Altonss changed the title Impossible to create shortcut on Android 5.0.2 due to merge #680 Impossible to create shortcut due to merge #680 Dec 16, 2021
@TheLastProject
Copy link
Member

Should be fixed in d4e388c.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants