Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- android.support.v7.app.ActionBar actionBar = getSupportActionBar();
- actionBar.setBackgroundDrawable(new ColorDrawable(getColor(R.color.colorVelocity))); **//<<Error NullPointerException**
- android.support.v7.app.ActionBar actionBar = getSupportActionBar();
- if (actionBar != null) {
- actionBar.setBackgroundDrawable(new ColorDrawable(getColor(R.color.colorVelocity)));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement