cancel
Showing results for 
Search instead for 
Did you mean: 

Dereferencing of the NULL reference

Former Member
0 Kudos

hi guru's

An error occurred during event processing in view SRVTKViewSet.htm of UI Component ZSRQM_SRVTK_S

An exception has occurred Exception Class CX_SY_REF_IS_INITIAL - Dereferencing of the NULL reference

Method: CL_CRM_SRQM_COMMON_S_VS_CTRL=>EH_ONSEARCH_BTN_CLICKED

could you please help me?

Thanks in advance

vishwanath

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

You have to put an external breakpoint in your event handler and debug where the reference is missing, check all assignments if they have any initial value passed to them.

Rgds,

Shobhit

Former Member
0 Kudos

Hello,

i debuged and checked everything is fine but i still have the same problem.........

could u please make it clear.....

Former Member
0 Kudos

Debug is the best option here as this is a generic error. In that view have you written any custom code anywhere ?

Edited by: Shobhit Srivastava on Dec 9, 2011 7:37 AM

Former Member
0 Kudos

No i am not written any custom code here actually i inherited the standard class CL_CRM_SRQM_COMMON_S_VS_CTRL

der only redefined following method.

method EH_ONCLEAR_BTN_CLICKED.

data: lv_viewname type string,

lr_view_ctrl type ref to cl_crm_srqm_common_sr_cntrl.

lv_viewname = me->get_viewarea_content( IF_CRM_SRQM_UIU_CONST=>GC_VIEWAREA_SEARCH ).

assert lv_viewname is not initial.

lr_view_ctrl ?= me->get_subcontroller_by_viewname( lv_viewname ).

lr_view_ctrl->clear_search( ).

endmethod.

0 Kudos

Hi Vishwanathan

Could you please identify the line at which the error is thrown througn debugging.

Regards

Leon