MultiPhotoPicker icon indicating copy to clipboard operation
MultiPhotoPicker copied to clipboard

NullPointerException in setDisplayHomeAsEnabled

Open athasamid opened this issue 7 years ago • 2 comments

error while run this library

Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.v7.app.ActionBar.setDisplayHomeAsUpEnabled(boolean)' on a null object reference at com.nileshp.multiphotopicker.photopicker.activity.PickImageActivity.onCreate(PickImageActivity.java:170) at android.app.Activity.performCreate(Activity.java:6367)

athasamid avatar Oct 02 '17 11:10 athasamid

I've got the same error.

MyoZawOo avatar Oct 16 '17 04:10 MyoZawOo

@MyoZawOo i fix this issue by change glide version in your app to specific version 3.8.0 this library use old version of glide

athasamid avatar Oct 17 '17 22:10 athasamid

This exception occurs when the activity theme is having no actionbar.

the parent theme in tag should have actionbar enabled theme.

like android:theme="@style/AppTheme" or any other theme which have actionbar enabled.....

by default the photopicker activity takes the parent theme. So that theme in application should have actionbar enabled.

sharkboy777 avatar Apr 20 '18 09:04 sharkboy777