TwitterSession.<init> crash for rooted users



Hi, I noticed a number of crashes that happen on rooted phones saying AuthToken must not be null. This happens when users want to tweet from our app. We’re not using twitter login or authentication in the app or fetching tweets, we use the SDK just for tweeting.

Here’s the complete stacktrace:

Fatal Exception: java.lang.IllegalArgumentException: AuthToken must not be null.
       at android.os.Handler.dispatchMessage(
       at android.os.Looper.loop(


Hey @sasa_sekulic,

If your users are going to Tweet, then you would need to do some sort of authentication so that the tweet can be setup to compose on their behalf. More information on how to set that up is here: