}
break;
case ISE_CANDIDATE_REQ_SHOW:
- ui->set_custom_starting_coordinates(0, candidate->get_height());
- if (g_input_panel_show || g_candidate_more_view) {
- size_portrait.height += candidate->get_height();
- size_landscape.height += candidate->get_height();
- } else {
- size_portrait.height = candidate->get_height();
- size_landscape.height = candidate->get_height();
+ if (candidate) {
+ ui->set_custom_starting_coordinates(0, candidate->get_height());
+ if (g_input_panel_show || g_candidate_more_view) {
+ size_portrait.height += candidate->get_height();
+ size_landscape.height += candidate->get_height();
+ } else {
+ size_portrait.height = candidate->get_height();
+ size_landscape.height = candidate->get_height();
+ }
}
break;
case ISE_CANDIDATE_REQ_HIDE: