https://kotlinlang.org logo
#android
Title
# android
j

Joey

12/03/2019, 8:35 AM
Any idea why my app crashes when calling
fetchHeartbeat()
in my
MapsActivity.kt
t

tseisel

12/03/2019, 8:44 AM
Could you also post the stacktrace related to the crash ?
p

Paul Woitaschek

12/03/2019, 8:44 AM
Because an Exception is thrown 🧌
🤣 2
j

Joey

12/03/2019, 8:51 AM
Its weird android studio didn't print any info regarding the crash 😕
p

Paul Woitaschek

12/03/2019, 8:51 AM
Maybe you didn't set the log filter in logcat correctly?
j

Joey

12/03/2019, 8:56 AM
Screenshot from 2019-12-03 16-56-15.png
t

tseisel

12/03/2019, 9:08 AM
You should have more output by removing your filter, unchecking the "Regex" box and selecting "Only the current application" in the right combo box
r

Rolando Lopez

12/03/2019, 2:12 PM
are you sure that
heartbeatModel.lat/lng
are not null?
j

Joey

12/04/2019, 1:11 AM
Still getting an error
@roland i just logged my latlng and they are not null
I think the problem is when im adding marker to my maps
Silly mistake, im toasting the thrown exception. Changed it to log and viola! App is working thank you everyone!