From time to time I'm getting a NPE
in an app I have published on Play Store and I'd like to log some extra info so I can better understand what's wrong.
Therefore I followed this guide from Fabric for enhanced reports hoping that I will see the value from a variable I log in the stack trace.
This is the code I used:
id = table.getId(); // <------ line that throws NPE
Crashlytics.log("userIsOnline: " + isOnline); // <----- variable I want to know it's value
Today I got the stack trace from two crashes but no variable was logged. Isn't this how I should log it or is there something else I haven't understand ?