Index: text.c =================================================================== RCS file: /cvs/ldtp/ldtp/src/text.c,v retrieving revision 1.14 diff -u -p -r1.14 text.c --- text.c 25 Jul 2006 20:06:42 -0000 1.14 +++ text.c 15 Aug 2006 10:53:06 -0000 @@ -52,11 +52,6 @@ set_text_value (Accessible *object, char LDTPError *error; AccessibleEditableText *editableText; - if (!text) { - error = ldtp_error_get_error (LDTP_ERROR_UNABLE_TO_SET_TEXT); - log_msg (LDTP_LOG_CAUSE, error->message, log_fp); - return error; - } if (Accessible_isEditableText (object)) { SPIBoolean flag; editableText = Accessible_getEditableText (object); @@ -883,9 +878,13 @@ text_main (LDTPClientContext* cctxt, int LDTPError *error = NULL; switch (command) { case LDTP_CMD_SETTEXTVALUE: - error = set_text_value (cctxt->gui_handle->handle, - cctxt->req->arg_list->data, - cctxt->log_fp); + if (cctxt->req->arg_list && cctxt->req->arg_list->data) { + error = set_text_value (cctxt->gui_handle->handle, + cctxt->req->arg_list->data, + cctxt->log_fp); + } + else + error = ldtp_error_get_error (LDTP_ERROR_UNABLE_TO_SET_TEXT); break; case LDTP_CMD_CUTTEXT: { long startpos = 0;