Skip to content

Commit 43b57ec

Browse files
author
Jason Sams
committed
Fix error printing if no command string is set.
Change-Id: I588c0d0a4e1b8f80c967ebfb6aff179a0cac4a36
1 parent 846601a commit 43b57ec

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

libs/rs/rsContext.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,8 +319,12 @@ void Context::destroyWorkerThreadResources() {
319319

320320
void Context::printWatchdogInfo(void *ctx) {
321321
Context *rsc = (Context *)ctx;
322-
LOGE("RS watchdog timeout: %i %s line %i %s", rsc->watchdog.inRoot,
323-
rsc->watchdog.command, rsc->watchdog.line, rsc->watchdog.file);
322+
if (rsc->watchdog.command && rsc->watchdog.file) {
323+
LOGE("RS watchdog timeout: %i %s line %i %s", rsc->watchdog.inRoot,
324+
rsc->watchdog.command, rsc->watchdog.line, rsc->watchdog.file);
325+
} else {
326+
LOGE("RS watchdog timeout: %i", rsc->watchdog.inRoot);
327+
}
324328
}
325329

326330

0 commit comments

Comments
 (0)