ui_popup: fix a crash in ui_popup_create(). 67/91967/1
authorHermet Park <hermet@hermet.pe.kr>
Wed, 12 Oct 2016 10:00:57 +0000 (19:00 +0900)
committerHermet Park <hermet@hermet.pe.kr>
Wed, 12 Oct 2016 10:00:57 +0000 (19:00 +0900)
+ argument null check.

Change-Id: I5f1e9e369cd122a0575d5eb216a936dcd69955e6

src/lib/efl/mobile/c/ui_popup.cpp

index 661ef8d06aba748492e0f6bc25063284c5113793..2d9db980068ce99b34338a9b24b43252dfd712c3 100644 (file)
@@ -18,6 +18,12 @@ static int validate_popup(ui_popup *popup)
 
 EAPI ui_popup *ui_popup_create(ui_view *view)
 {
+       if (!view)
+       {
+               LOGE("view is null.");
+               return nullptr;
+       }
+
        return new ui_popup(view);
 }