Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'android.os.Message android.app.IntentService$ServiceHandler.obtainMessage()' on a null object reference
使用Android intentService 的实现类中 要是重写了onCreate() 而没有调用父类的 super.onCreate(); 时会报这个错。
@Override
public void onCreate() {
// super.onCreate();
}
bug中还不会出现自己写的代码的错误提示,
java.lang.RuntimeException: Unable to start service com.***.***.Service.FloatingService@4eefcc0 with Intent { cmp=com.***.***/.Service.FloatingService }: java.lang.NullPointerException: Attempt to invoke virtual method 'android.os.Message android.app.IntentService$ServiceHandler.obtainMessage()' on a null object reference
at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:4344)
at android.app.ActivityThread.access$1800(ActivityThread.java:237)
at android.app.ActivityThread$H.handleMessage(Act