没有在崩溃日志中命名的异常

时间:2013-02-06 17:12:59

标签: android

我的应用程序在进行更新时崩溃了,但它没有告诉我什么是异常只是一个空白,它通常会打印异常,这里是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
}

我想它必须是NullPointerException但是没有意义,因为e如果到达那条线就不能为空,对吧?但更重要的问题是为什么日志中没有打印出异常?

0 个答案:

没有答案