googlesamples/easypermissions

java.lang.NullPointerException

Open

#278 opened on Mar 21, 2019

View on GitHub
 (12 comments) (2 reactions) (0 assignees)Java (9,780 stars) (1,486 forks)batch import
bughelp wanted

Description

Basic Information

Device type: huawei____ OS version: android 6.0____ EasyPermissions version: 2.0.1

Describe the problem

What happened? What did you expect to happen? when I call AppSettingsDialog show

Code and logs

java.lang.RuntimeException:Unable to start activity ComponentInfo{com.qiushibaike.inews/pub.devrel.easypermissions.AppSettingsDialogHolderActivity}: java.lang.NullPointerException: Attempt to invoke direct method 'void vy.֏(java.lang.Object)' on a null object reference
--
2 android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2479)
3 ......
4 Caused by:
5 java.lang.NullPointerException:Attempt to invoke direct method 'void vy.֏(java.lang.Object)' on a null object reference
6 vy.֏(AppSettingsDialog.java:85)
7 pub.devrel.easypermissions.AppSettingsDialogHolderActivity.onCreate(AppSettingsDialogHolderActivity.java:31)
8 android.app.Activity.performCreate(Activity.java:6372)
// TODO(you): show the code that produces the problem,
//            and any relevant logs.

Contributor guide