Please help me to find out what's wrong? Google Map

I want to add a marker on the google map.
But this error occurred.
Attempt to invoke virtual method ‘’ on a null object reference
Note: You will not see another error reported for 5 seconds.
This is my blocks:

When you call this procedure ? Is map ready ?

1 Like

Most probably you are calling the procedure on screen initialize

Try this way using a clock component and give map a few milliseconds in order to load

1 Like

Thanks for the help!

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.