0

我的应用程序在进行更新时崩溃了,但它没有告诉我异常是什么,只有一个空白,它通常会打印异常,这里是 logcat:

02-06 04:00:21.306 E/AndroidRuntime( 5582):     at com.myapp.services.MonthUpdateService.processIntent(MonthUpdateService.java:167)
02-06 04:00:21.306 E/AndroidRuntime( 5582):     at com.myapp.services.UpdateService.onHandleIntent(UpdateService.java:215)
02-06 04:00:21.353 I/ActivityManager(17864): Process com.myapp (pid 5582) has died.
02-06 04:00:21.353 W/ActivityManager(17864): Scheduling restart of crashed service com.myapp/.services.MonthUpdateService in 42414ms
02-06 04:05:29.853 I/ActivityManager(17864): Start proc com.myapp for service com.myapp/.services.MonthUpdateService: pid=5718 uid=10090 gids={3003, 1028}
02-06 04:05:46.009 E/AndroidRuntime( 5718):     at com.myapp.services.MonthUpdateService.processIntent(MonthUpdateService.java:167)
02-06 04:05:46.009 E/AndroidRuntime( 5718):     at com.myapp.services.UpdateService.onHandleIntent(UpdateService.java:215)
02-06 04:05:46.032 I/ActivityManager(17864): Process com.myapp (pid 5718) has died.
02-06 04:05:46.032 W/ActivityManager(17864): Service crashed 2 times, stopping: ServiceRecord{42be7440 com.myapp/.services.MonthUpdateService}

它崩溃的代码:

catch( IOException e )
{
    //TODO Schedule a retry for IO Exception.
    Log.w( TAG,  e.getMessage() ); // LINE 167
}

我想它一定是 aNullPointerException但这没有任何意义,因为e如果它到达那条线就不能为空,对吧?不过,更重要的问题是为什么日志中没有打印异常?

4

0 回答 0