diff --git a/services/aah_timesrv/aah_timesrv.cpp b/services/aah_timesrv/aah_timesrv.cpp index 81073004f6c36..451a7513e995b 100644 --- a/services/aah_timesrv/aah_timesrv.cpp +++ b/services/aah_timesrv/aah_timesrv.cpp @@ -1091,6 +1091,7 @@ int main(int argc, char *argv[]) { using namespace android; sp service = new AAHTimeService(); + if (service == NULL) return 1; ProcessState::self()->startThreadPool();