修复启动时tanlu模块未初始化导致异常

Signed-off-by: donghongyu <donghongyu@zhidaoauto.com>
This commit is contained in:
donghongyu
2021-12-23 17:08:03 +08:00
parent d7dece4f7b
commit 76c811ba1c
2 changed files with 26 additions and 1 deletions

View File

@@ -92,7 +92,7 @@ class MogoMainService extends Service implements IMogoLocationListener {
private void startTanluService() {
UiThreadHandler.postDelayed(() -> {
Logger.d(TAG, "startTanluService ---------- ");
if (mServiceApis != null) {
if (mServiceApis != null && mServiceApis.getTanluApi() != null) {
mServiceApis.getTanluApi().startTanluService();
}
}, 2_000L