I have a code like:
try{
//todo somethins
} catch(Exception e){
Log.e("tag", e.getMessage());
}
And I catched NullPointerException
on row Log.e("tag", e.getMessage());
at google analytic page
How is it possible?
I have a code like:
try{
//todo somethins
} catch(Exception e){
Log.e("tag", e.getMessage());
}
And I catched NullPointerException
on row Log.e("tag", e.getMessage());
at google analytic page
How is it possible?
Your e.getMessage() is probably null. The exception that you are catching doesn't have a message.
Also don't try to catch raw exceptions. You could use NullPointerException.
See this link: Exception.getMessage() is null