[WGID-89732] Fix dereference issue
[apps/native/ug-mobile-ap.git] / src / mh_view_main.c
index 5560fb6..ecc39e5 100755 (executable)
@@ -3,7 +3,7 @@
 *
 * Copyright 2012  Samsung Electronics Co., Ltd
 
-* Licensed under the Flora License, Version 1.0 (the "License");
+* Licensed under the Flora License, Version 1.1 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 
@@ -1138,7 +1138,7 @@ static char *__get_help_label(void *data, Evas_Object *obj, const char *part)
                                        passphrase,
                                        security_type,
                                        STR_ENTER_THE_PASSWORD_ON_THE_OTHER_DEVICE,
-                                       hidden[0] != '\0' ? "<br>" : "",
+                                       hidden && hidden[0] != '\0' ? "<br>" : "",
                                        hidden);
                } else {
                        snprintf(buf, MH_LABEL_LENGTH_MAX,
@@ -1148,7 +1148,7 @@ static char *__get_help_label(void *data, Evas_Object *obj, const char *part)
                                        "</font_size>",
                                        STR_DEV_NAME,
                                        device_name,
-                                       hidden[0] != '\0' ? "<br>" : "",
+                                       hidden && hidden[0] != '\0' ? "<br>" : "",
                                        hidden);
                }