Skip to content
This repository has been archived by the owner on Dec 11, 2017. It is now read-only.

Null Pointer error in ActionBarToggleJellybeanMR2 #2

Open
tonespy opened this issue May 11, 2015 · 0 comments
Open

Null Pointer error in ActionBarToggleJellybeanMR2 #2

tonespy opened this issue May 11, 2015 · 0 comments

Comments

@tonespy
Copy link

tonespy commented May 11, 2015

I get

java.lang.NullPointerException: Attempt to invoke virtual method 'void android.app.ActionBar.setHomeAsUpIndicator(android.graphics.drawable.Drawable)' on a null object#reference

located in

public static Object setActionBarUpIndicator(Object info, Activity activity,
            Drawable drawable, int contentDescRes) {
        final ActionBar actionBar = activity.getActionBar();
        actionBar.setHomeAsUpIndicator(drawable);
        actionBar.setHomeActionContentDescription(contentDescRes);
        return info;
    }
    in the ActionBarToggleJellybeanMR2 class

Pointing to #actionBar.setHomeAsUpIndicator(drawable);

Any help would be appreciated. Thanks.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant