App crash / force close java.lang.NullPointerException, help

b0nb0n3v

Member
Mar 18, 2013
30
11
28
Hello everyone, I open this thread here because I know much of the people here have more experience and may be can help with the problem.

I have a tablet Chuwi with Intel Celeron (x86-x64) with Windows and now I make dual boot with "Phoenix OS Thunder Lite v4.5 Android x86", every think work as expected but main app which I use crash. I investigate the problem and with the another port "Prime OS Thunder Lite v1.0" the issue doesn't present and work like a charm. But with Prime OS i have very short life time, in Phoenix OS is greatly improved. After a coup of port I considered the something in Phoenix OS (no matter which port or mod) have this issue. I have a log with the error, generated by the application + video of the problem.

The quote of the log:
Code:
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.cnnlaunch.x431.pro3S/com.cnlaunch.x431pro.activity.diagnose.CarIconActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.graphics.drawable.Drawable.setAlpha(int)' on a null object reference
Full log:
Devices Model: Thunder OS
Devices SDK Version: 25
Software Version Name: 66 AG
Software Version Code: 129
Software Type: X431PADII
Crash Time: 2021-01-18,19-47-22
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.cnnlaunch.x431.pro3S/com.cnlaunch.x431pro.activity.diagnose.CarIconActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.graphics.drawable.Drawable.setAlpha(int)' on a null object reference
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2713)
at android.app.ActivityThread.startActivityNow(ActivityThread.java:2503)
at android.app.LocalActivityManager.moveToState(LocalActivityManager.java:136)
at android.app.LocalActivityManager.startActivity(LocalActivityManager.java:348)
at com.cnlaunch.x431pro.activity.MainActivity.c(Unknown Source)
at com.cnlaunch.x431pro.utils.bs.a(Unknown Source)
at com.cnlaunch.x431pro.utils.d.f.a(Unknown Source)
at com.cnlaunch.x431pro.activity.ap.d(Unknown Source)
at com.cnlaunch.x431pro.activity.ap.c(Unknown Source)
at com.cnlaunch.x431pro.activity.ah.onClick(Unknown Source)
at android.view.View.performClick(View.java:5638)
at android.view.View$PerformClick.run(View.java:22435)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6300)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:887)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:777)
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.graphics.drawable.Drawable.setAlpha(int)' on a null object reference
at com.cnlaunch.x431pro.widget.a.db.<init>(Unknown Source)
at com.cnlaunch.x431pro.activity.diagnose.CarIconFragmentForAll.onActivityCreated(Unknown Source)
at android.app.Fragment.performActivityCreated(Fragment.java:2362)
at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1014)
at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1171)
at android.app.BackStackRecord.run(BackStackRecord.java:816)
at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1578)
at android.app.FragmentController.execPendingActions(FragmentController.java:371)
at android.app.Activity.performStart(Activity.java:6724)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2676)
... 18 more
java.lang.NullPointerException: Attempt to invoke virtual method 'void android.graphics.drawable.Drawable.setAlpha(int)' on a null object reference
at com.cnlaunch.x431pro.widget.a.db.<init>(Unknown Source)
at com.cnlaunch.x431pro.activity.diagnose.CarIconFragmentForAll.onActivityCreated(Unknown Source)
at android.app.Fragment.performActivityCreated(Fragment.java:2362)
at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1014)
at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1171)
at android.app.BackStackRecord.run(BackStackRecord.java:816)
at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1578)
at android.app.FragmentController.execPendingActions(FragmentController.java:371)
at android.app.Activity.performStart(Activity.java:6724)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2676)
at android.app.ActivityThread.startActivityNow(ActivityThread.java:2503)
at android.app.LocalActivityManager.moveToState(LocalActivityManager.java:136)
at android.app.LocalActivityManager.startActivity(LocalActivityManager.java:348)
at com.cnlaunch.x431pro.activity.MainActivity.c(Unknown Source)
at com.cnlaunch.x431pro.utils.bs.a(Unknown Source)
at com.cnlaunch.x431pro.utils.d.f.a(Unknown Source)
at com.cnlaunch.x431pro.activity.ap.d(Unknown Source)
at com.cnlaunch.x431pro.activity.ap.c(Unknown Source)
at com.cnlaunch.x431pro.activity.ah.onClick(Unknown Source)
at android.view.View.performClick(View.java:5638)
at android.view.View$PerformClick.run(View.java:22435)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6300)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:887)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:777)

Video link with the problem -

App link - https://drive.google.com/file/d/15gLSmf2SxzSZ5XmOXVQh4D4lWKMlDl6w/view?usp=sharing

Thanks!