android JobService异常Attempt to invoke virtual method 'int com.android.server.job.controllers.JobStatus.getUid()' on a null object

Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'int com.android.server.job.controllers.JobStatus.getUid()' on a null object reference
at android.os.Parcel.readException(Parcel.java:1546)
at android.os.Parcel.readException(Parcel.java:1493)
at android.app.job.IJobCallback$Stub$Proxy.jobFinished(IJobCallback.java:167)
at android.app.job.JobService$JobHandler.handleMessage(JobService.java:147)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5260)
at java.lang.reflect.Method.invoke(Method.java)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java

发现是第三方广告JobService导致的

 

          try {
                if (msg.obj != null) {
                    jobFinished((JobParameters) msg.obj, false);
                } 
            } catch (Exception e) {
                    Log.e(TAG, "", e);
            }

 

posted on 2019-12-30 15:12  mingfeng002  阅读(1163)  评论(0编辑  收藏  举报