diff options
| author | 2020-02-20 17:27:50 +0000 | |
|---|---|---|
| committer | 2020-02-20 17:27:50 +0000 | |
| commit | e643c3e6ee43ccd84a325023ac99fdb86dd9f4ea (patch) | |
| tree | 6c1aa1cbc108746ab0dc4b895ca33d0646a0c67d | |
| parent | ba7a3159249567ea2b2ee52696d949877423f27f (diff) | |
| parent | c0ab6a353202ed78bb710a4c5ebe47c1127d7dc5 (diff) | |
Merge "Log when context manager is unavailable." am: c0ab6a3532
Change-Id: I24a3b2af9522dd7baa85f236e87963a27971b010
| -rw-r--r-- | libs/binder/ProcessState.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/binder/ProcessState.cpp b/libs/binder/ProcessState.cpp index c0f5e31d72..631e8c5cb2 100644 --- a/libs/binder/ProcessState.cpp +++ b/libs/binder/ProcessState.cpp @@ -112,6 +112,10 @@ sp<IBinder> ProcessState::getContextObject(const sp<IBinder>& /*caller*/) { sp<IBinder> context = getStrongProxyForHandle(0); + if (context == nullptr) { + ALOGW("Not able to get context object on %s.", mDriverName.c_str()); + } + // The root object is special since we get it directly from the driver, it is never // written by Parcell::writeStrongBinder. internal::Stability::tryMarkCompilationUnit(context.get()); |