Update to v0.20.5 crashes app instantly
See original GitHub issueDescribe your issue Hello, When updating the app to v0.20.5 and opening it it crashes instantly. The splash screen flashes for a split second but then the app is closed again. Thank you.
To Reproduce Steps to reproduce the behavior:
- Have data stored in app version 0.20.4 or earlier
- Upgrade to version 0.20.5
- Open the app
Expected behavior The app opens
Smartphone (please complete the following information):
- Device: Pixel 4a
- OS: Calyx OS based on Android 12
- App Version: 0.20.5
Additional context
Crash stack trace
FATAL EXCEPTION: main
Process: com.easyfitness, PID: 8575
java.lang.NullPointerException: Attempt to invoke virtual method 'int com.easyfitness.DAO.record.Record.getSets()' on a null object reference
at com.easyfitness.DAO.DatabaseHelper.copyTemplateValues(DatabaseHelper.java:401)
at com.easyfitness.DAO.DatabaseHelper.onUpgrade(DatabaseHelper.java:217)
at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:416)
at android.database.sqlite.SQLiteOpenHelper.getReadableDatabase(SQLiteOpenHelper.java:340)
at com.easyfitness.DAO.DAOBase.getReadableDatabase(DAOBase.java:24)
at com.easyfitness.DAO.DAOProfile.getProfile(DAOProfile.java:92)
at com.easyfitness.MainActivity.initActivity(MainActivity.java:1076)
at com.easyfitness.MainActivity.onStart(MainActivity.java:348)
at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1455)
at android.app.Activity.performStart(Activity.java:8075)
at android.app.ActivityThread.handleStartActivity(ActivityThread.java:3660)
at android.app.servertransaction.TransactionExecutor.performLifecycleSequence(TransactionExecutor.java:221)
at android.app.servertransaction.TransactionExecutor.cycleToPath(TransactionExecutor.java:201)
at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:173)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2210)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:201)
at android.os.Looper.loop(Looper.java:288)
at android.app.ActivityThread.main(ActivityThread.java:7839)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:8 (3 by maintainers)
Top Results From Across the Web
Crashing Android apps will now tell you to install an update to ...
Based on the strings, it will likely be possible to update the app in question right away from the prompt, though it's good...
Read more >Why do my apps keep crashing on Android, How to fix it
Force stop the app To do this, go to Settings -> Apps and select the app that keeps crashing. Tap on the app's...
Read more >Android will prompt you to update apps if they're crashing
“Update the app to fix crashes,” the prompt says, according to Esper's senior technical editor Mishaal Rahman. “The app stopped working, ...
Read more >All iOS 15 apps crash when quickly… | Apple Developer Forums
All iOS 15 apps crash when quickly restarted (iPhone) · Open any app · Close the app and quickly reopen. This will cause...
Read more >Google app crashing after new update; here's how to fix
Launch Android Settings app · Go to Apps & notifications · Tap “See all apps” · Find and tap Google from the app...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi guys, thanks to the Stacktrace, I have been able to identify the issue quickly. The new release should be available today on google play. Thank you for the feedback. Let me know if you still have issues with the 0.20.5.1.
the build bot hasn’t even discover this new version yet … https://gitlab.com/fdroid/fdroiddata/-/blob/master/metadata/com.easyfitness.yml