fixed SVACE issue 74/76774/1 accepted/tizen/common/20160628.141336 accepted/tizen/ivi/20160628.015218 accepted/tizen/mobile/20160628.015235 accepted/tizen/tv/20160628.015159 accepted/tizen/wearable/20160628.015222 submit/tizen/20160628.010408
authorjomui <jongmun.woo@samsung.com>
Mon, 27 Jun 2016 07:44:08 +0000 (16:44 +0900)
committerjomui <jongmun.woo@samsung.com>
Mon, 27 Jun 2016 07:44:30 +0000 (16:44 +0900)
Signed-off-by: jomui <jongmun.woo@samsung.com>
Change-Id: I2f05ee964a9b5fb8119ebf39d4286e13421d9a49

src/api/maps_view_object.cpp
src/view/gesture_processor.cpp

index 638c02b..eacb9bd 100644 (file)
@@ -1210,6 +1210,8 @@ static bool __maps_view_object_overlay_clip(maps_view_object_h overlay, Evas_Obj
        int x, y, w, h;
        maps_view_get_screen_location(__get_view(overlay), &x, &y, &w, &h);
        maps_view_overlay_data_s *m = __get_overlay_data(overlay);
+       if (!m)
+               return false;
        evas_object_color_set(clipper, 255, 255, 255, 255);
        evas_object_move(clipper, x, y);
        evas_object_resize(clipper, w, h);
@@ -1230,6 +1232,8 @@ static bool __maps_view_object_overlay_move(maps_view_object_h overlay, maps_coo
        int x, y, w, h;
        maps_view_geolocation_to_screen(__get_view(overlay), coordinates, &x, &y);
        maps_view_overlay_data_s *m = __get_overlay_data(overlay);
+       if (!m)
+               return false;
        evas_object_geometry_get(m->object, NULL, NULL, &w, &h);
 
        x -= w / 2;
index 069e7b4..0e3f7a3 100644 (file)
@@ -225,12 +225,15 @@ session::command *view::gesture_processor::construct_gesture_command(
                        rotation_angle -= (int(rotation_angle) / 360) * 360;
                        return new session::command_view_rotate(get_maps(), _gd->_view, rotation_angle);
                }
+               break;
        }
        case MAPS_VIEW_ACTION_NONE:
                MAPS_LOGI("GESTURE: This Gesture is assigned with no Action");
+               break;
        default:
-               return session::command::empty_ptr();
+               break;
        }
+       return session::command::empty_ptr();
 }
 
 void view::gesture_processor::on_long_press()