Skip to Content
0
Former Member
Jun 08, 2011 at 10:04 AM

Error: Access via 'NULL' object reference not possible.

68 Views

Dear Experts,

I am new to oops concept. I am getting short dump error for below code. Please suggest me how to resolve this issue.

DATA: L_SCRIPT_COLLECTION TYPE REF TO i_oi_script_collection.

CALL METHOD L_SCRIPT_COLLECTION->ADD_SCRIPT_FROM_TABLE

EXPORTING NO_FLUSH = ''

SCRIPT_NAME = 'Macro'

SCRIPT_TYPE = L_SCRIPT_COLLECTION->SCRIPT_TYPE_VBSCRIPT

SCRIPT_TABLE = LT_SOURCE_CODE

IMPORTING ERROR = GC_ERROR

RETCODE = L_RETURN_CODE .