Open TomGarden-2 opened 5 years ago
/*Device Info*/
[硬]设备制造商=Genymotion
[硬]设备型号=Custom
[硬]CPU型号=null
[硬]RAM=1.04 GB
[硬]ROM=13.38 GB
[OS][三方定制系统版本]=Android/vbox86p/vbox86p:8.0.0/OPR6.170623.017/32:userdebug/test-keys
[OS]产品名称(adb shell)=vbox86p
[OS][系统名称]=Android
[OS][Android版本]=8.0.0(26)
[app]versionName=1.0
[app]versionCode=1
/*Exception*/
java.lang.RuntimeException: Unable to resume activity {io.github.TomGarden.tetris/io.github.TomGarden.tetris.Activities.CustomThemeActivity}: java.lang.NullPointerException: Attempt to read from field 'int android.graphics.Point.x' on a null object reference
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3645)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3685)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1643)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6541)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)
Caused by: java.lang.NullPointerException: Attempt to read from field 'int android.graphics.Point.x' on a null object reference
at io.github.TomGarden.tetris.CustomWeights.TomBeaker$TomTetris.generatePixPosition(TomBeaker.java:1382)
at io.github.TomGarden.tetris.CustomWeights.TomBeaker$TomTetris.setMatrixPosLTWithUpdate(TomBeaker.java:1390)
at io.github.TomGarden.tetris.CustomWeights.TomBeaker.refreshStyle(TomBeaker.java:1130)
at io.github.TomGarden.tetris.Fragments.GameFragment.onResume(GameFragment.java:76)
at android.support.v4.app.Fragment.performResume(Fragment.java:2390)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1474)
at android.support.v4.app.FragmentManagerImpl.moveFragmentToExpectedState(FragmentManager.java:1759)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1827)
at android.support.v4.app.FragmentManagerImpl.dispatchStateChange(FragmentManager.java:3244)
at android.support.v4.app.FragmentManagerImpl.dispatchResume(FragmentManager.java:3212)
at android.support.v4.app.FragmentController.dispatchResume(FragmentController.java:217)
at android.support.v4.app.FragmentActivity.onResumeFragments(FragmentActivity.java:509)
at android.support.v4.app.FragmentActivity.onPostResume(FragmentActivity.java:498)
at android.support.v7.app.AppCompatActivity.onPostResume(AppCompatActivity.java:171)
at android.app.Activity.performResume(Activity.java:7103)
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3620)
... 8 more
java.lang.NullPointerException: Attempt to read from field 'int android.graphics.Point.x' on a null object reference
at io.github.TomGarden.tetris.CustomWeights.TomBeaker$TomTetris.generatePixPosition(TomBeaker.java:1382)
at io.github.TomGarden.tetris.CustomWeights.TomBeaker$TomTetris.setMatrixPosLTWithUpdate(TomBeaker.java:1390)
at io.github.TomGarden.tetris.CustomWeights.TomBeaker.refreshStyle(TomBeaker.java:1130)
at io.github.TomGarden.tetris.Fragments.GameFragment.onResume(GameFragment.java:76)
at android.support.v4.app.Fragment.performResume(Fragment.java:2390)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1474)
at android.support.v4.app.FragmentManagerImpl.moveFragmentToExpectedState(FragmentManager.java:1759)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1827)
at android.support.v4.app.FragmentManagerImpl.dispatchStateChange(FragmentManager.java:3244)
at android.support.v4.app.FragmentManagerImpl.dispatchResume(FragmentManager.java:3212)
at android.support.v4.app.FragmentController.dispatchResume(FragmentController.java:217)
at android.support.v4.app.FragmentActivity.onResumeFragments(FragmentActivity.java:509)
at android.support.v4.app.FragmentActivity.onPostResume(FragmentActivity.java:498)
at android.support.v7.app.AppCompatActivity.onPostResume(AppCompatActivity.java:171)
at android.app.Activity.performResume(Activity.java:7103)
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3620)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3685)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1643)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6541)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)