cancel
Showing results for 
Search instead for 
Did you mean: 

Exception Class CX_SY_REF_IS_INITIAL - Dereferencing of the NULL reference

Former Member
0 Kudos

Hi Exerts,

I have enhanced one view and did some modification to remove one button. Now when I go to UI and go to transaction then without adding any value if I press Cancel button then I get followin error:

-


Cannot display view TPMOE/VtsEOL of UI Component TPMOE

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

Method: CL_TPMOE_VTSEOL_IMPL=>DO_PREPARE_OUTPUT

Source Text Row: 124

-


I checked the code and the entity is empty while calling one of the method. But that piece of code I did not touch.

Any suggestion why is it appearing?

Cheers,

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

I added check of bound before calling entity methods.

All sorted.

Thank you.

Former Member
0 Kudos

Hi,

Please tell what are the code changes you made.

I believe the code is reading collection of context node TRADE, this must be getting emptied resulting in that exception.

Also please check if by putting the original code back this exception goes.

Thanks,

Rohit