How to interpret Logcat

The second “part” of your log is going to be what is important for you in this instance.

Caused by:
java.lang.NullPointerException

This means that somewhere in your code something is set to null and you are trying to use it as though it isn’t.

The next few lines tell you where in your code you can find the error.

at com.paad.whereami.WhereAmI.updateWithNewLocation(WhereAmI.java:290)
at com.paad.whereami.WhereAmI.onCreate(WhereAmI.java:216)

This should mean that you have a method named updateWithNewLocation that you are calling from onCreate at line 216. The error is coming from inside this method at line 290. Take a look at line 290 in your code. Whatever you are trying to do on that line is causing the exception because something is null that shouldn’t be.

Leave a Comment