python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
java.lang.NullPointerException: Attempt to invoke interface method 'java.lang.Object kotlinx.coroutines.flow.FlowCollector.emit
Crash as soon as flow emits its first value.
java.lang.NullPointerException: Attempt to invoke interface method 'java.lang.Object kotlinx.coroutines.flow.FlowCollector.emit(java.lang.Object, kotlin.co...
Andrew
Votes: 0
Answers: 1
Fragment's onCreateView() is not being called
I am creating an instance of my fragment and then trying to call one of it's methods but a variable needs to be instantiated in onCreateView() before the method can be called without throwing a NullPo...
Dylon Jaynes
Votes: 0
Answers: 1
Attempt to invoke virtual method 'android.graphics.drawable.Drawable android.content.pm.PackageManager.loadItemIcon on a null object reference
On some devices I get this crash, whereas on most devices everything works fine, can anyone explain the reason for this exception and how to fix it?
My code:
private fun onGetBatteryApps() {
m...
Armenak Mkhitaryan
Votes: 0
Answers: 1
Cannot invoke because "this." is null
am trying to create a simple automated test to open a certain link in chrome, but I get this issue. I read previusly that I should annotate my clases with @Component, which I did but still can not acc...
Dinu Donoaga
Votes: 0
Answers: 0