I come across one scenario where am experiencing the below issue..
putting external debugger and debugging the code. I found that I am unable to debug further and got the error after this statement :
Method if_ABAP_RUNTIME~get_runtime by kernel module ab_kmgetRuntimeHR.
after executing the above method, showing popup with the error 'Document is null or not an object' in web ui portal.
Any suggestions.. welcome..