elm_win: prevent Null pointer ref. 96/153296/2
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:54:02 +0000 (07:54 +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 388cb8eb8180db722d23797aa2b2e8136683711d..f7f77a897d41372c09553a6a3d08d3607af57926 100644 (file)
@@ -3956,7 +3956,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);