context->input = text_input;
context->context = ds_tizen_input_method_create_context(input_method->input_method);
+ if (context->context == NULL) {
+ ds_err("ds_tizen_input_method_create_context() failed.");
+ return false;
+ }
context->destroy.notify = context_handle_destroy;
ds_tizen_input_method_context_add_destroy_listener(context->context,