Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

OBJECTS_OBJREF_NOT_ASSIGNED_NO

Hello Experts,

Request you to kindly help me to avoid the dump due to exception 'CX_SY_REF_IS_INITIAL'

Error analysis

An exception occurred that is explained in detail below.

The exception, which is assigned to class 'CX_SY_REF_IS_INITIAL', was not

caught in procedure "WDDOAPPLICATIONSTATECHANGE" "(METHOD)", nor was it propagated by a

RAISING clause.

Since the caller of the procedure could not have anticipated that the exception would occur, the current program is terminated.

The reason for the exception is:

You attempted to use a 'NULL' object reference (points to 'nothing') access a component.

An object reference must point to an object (an instance of a class) before it can be used to access components.

Either the reference was never set or it was set to 'NULL' using the CLEAR statement.

Here is my code where the dump occurs.

DATA lo_controller TYPE REF TO if_wd_component.

DATA lo_message_manager TYPE REF TO if_wd_message_manager.

TRY.

lo_controller ?= wd_this->wd_get_api( ).

CATCH cx_sy_move_cast_error.

ENDTRY.

>>>> DUMP Occurs at this point >>>>CALL METHOD lo_controller->get_message_manager

RECEIVING

message_manager = lo_message_manager.

Former Member

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question