janheinrichmerker / material-intro

A simple material design app intro with cool animations and a fluent API.
https://jitpack.io/#com.heinrichreimer/material-intro
MIT License
1.74k stars 305 forks source link

Null object reference on customization setButtonBackVisible(true); #307

Open Apsalogics opened 3 years ago

Apsalogics commented 3 years ago

Attempt to invoke virtual method 'void android.widget.ImageButton.setVisibility(int)' on a null object reference This issue is raised on Huawei Device This issue raised when customization start https://github.com/heinrichreimer/material-intro#customization

Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.ImageButton.setVisibility(int)' on a null object reference at com.heinrichreimersoftware.materialintro.app.IntroActivity.setButtonBackVisible(IntroActivity.java:1149) at Pakigname.Activityname.onCreate(Activityname.java:24) at android.app.Activity.performCreate(Activity.java:7383) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1218)