elm_win: prevent Null pointer ref. 93/153293/3
authorWoochan Lee <wc0917.lee@samsung.com>
Thu, 28 Sep 2017 07:47:06 +0000 (16:47 +0900)
committerGerrit Code Review <gerrit@review.ap-northeast-2.compute.internal>
Thu, 28 Sep 2017 07:51:29 +0000 (07:51 +0000)
_elm_config could be null. in case launch the app using app_launch command in shell.

@tizen_fix

Change-Id: I27006548a32c56fffd6ff9aea98941b5e6036593

src/lib/elm_win.c

index 3af246bba9e9aeee453559be060a52e233e780e6..9473f45977880769530da897df723a46bb98251f 100644 (file)
@@ -3954,7 +3954,7 @@ elm_win_add(Evas_Object *parent,
 //
 
 //TIZEN_ONLY(20161202): Temporary code - Apply mirroring in elm_win_add()
-   if (_elm_config->language_auto_mirrored)
+   if (_elm_config && _elm_config->language_auto_mirrored)
      {
         if (!strcmp(E_("default:LTR"), "default:RTL"))
           elm_config_mirrored_set(EINA_TRUE);