[Crash report] Lateinit property `textLayout` is not initialized at FilterChip#onDraw L291
See original GitHub issueOverview (Required)
- Crash on resuming session list screen, caused by accessing lateinit property
textLayout
without initialization in FilterChip.textLayout
is initialized atonMeasure
procedure.- seems like there’s a path to call
onDraw
without initializingtextLayout
.
Steps To Reproduce
It’s not consistently reproducible but I have observed the issue several times with these steps.
- Launch conference app
- Lock the device
- Unlock after some time
Expected behavior Resume session list screen without a crash.
Env:
- Device: Pixel 4 XL
- OS: Android 10
- App Version: DeployGate #130 / 1.0.5 (1000500)
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
lateinit property not initialized after pick file explorer
I have a lateinit variable as follow : lateinit var uploadProperties: Property. And the code to open explorer (permission already granted) :
Read more >lateinit property has not been initialized #546 - GitHub
Hello, I have the following class @Path("/canceling") class CancelResource { @Inject lateinit var cancelManager: CancelManager @POST @Path("{id}") fun ...
Read more >You can check whether the lateinit property has been ... - Reddit
You can check whether the lateinit property has been initialized or not using isInitialized. r/androiddev - You can check whether the ...
Read more >How to Check if a "lateinit" Variable Has Been Initialized or ...
If we don't initialize a lateinit variable before using it gives an error of “lateinit property has not been initialized”. You can check...
Read more >When should you use Lateinit over Lazy initialization in Kotlin?
The Lateinit and Lazy initializations are two initialization properties in the Kotlin ... While using Lateinit , the variable can't be of the...
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
No need to apologize 😄 Thank you for your dedicated investigation. 👍
Of course, assigned 👍