I have this URI data
`mari://fitbit#access_token=eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiI0WDVEOEgiLCJhdWQiOiIyMjdTSlkiLCJpc3MiOiJGaXRiaXQiLCJ0eXAiOiJhY2Nlc3Nfd`
And Im trying to get the access_token from the URI using this method
Intent intent = getIntent();
Uri data = intent.getData();
if (data != null){
Log.d("Test",data.toString());
Log.d("Access Token is: ", data.getQueryParameter("access_token"));
}
However it gives me an error java.lang.NullPointerException: println needs a message
What have I done incorrectly to access the query parameter?
Stack trace