From 29e9a7f305284fb9f4157e9df94a73c4fa757ad0 Mon Sep 17 00:00:00 2001 From: "sooyeon.kim" Date: Thu, 4 May 2017 17:50:47 +0900 Subject: [PATCH] Fix SVACE issue Change-Id: Ib6b4bb9727db6fe87db8f5010fe27320fc429f68 Signed-off-by: sooyeon.kim --- common/tts_config_mgr.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/common/tts_config_mgr.c b/common/tts_config_mgr.c index fd09c2d..da566c7 100644 --- a/common/tts_config_mgr.c +++ b/common/tts_config_mgr.c @@ -2080,6 +2080,11 @@ int tts_config_mgr_get_max_text_size(unsigned int* size) break; } + if (NULL == engine_info) { + SLOG(LOG_ERROR, tts_tag(), "engine info is NULL"); + return TTS_CONFIG_ERROR_OPERATION_FAILED; + } + *size = engine_info->text_size; SLOG(LOG_DEBUG, tts_tag(), "[DEBUG] Max text size is %d.", *size); -- 2.7.4