Error while accessing application with the custom components

Hi experts,

I have an application (HAP_MAIN_DOCUMENT) of component FPM_OIF_COMPONENT which uses a Webdynpro component with the same name (HAP_MAIN_DOCUMENT). This Webdynpro component (HAP_MAIN_DOCUMENT) uses 2 other components (HAP_DOCUMENT_BODY and HAP_DOCUMENT_HEADER). For my client requirement, i need to create the custom components by copying from standard components as the UI layout changes are quiet huge and not manageable with the enhancements. To accomodate this i have changed the standard configurations by replacing the standard web dynpro components with the custom ones copied. Apart fomr this there are no changes to the standard.

While trying to access the application, i am getting the error as Null object reference.

the details of the error is as below. Please advice.

Heading 1: h1. P:ortal Error

The URL http://******************/sap/bc/webdynpro/sap/HAP_MAIN_DOCUMENT/ was not called due to an error.

Note

The following error text was processed in the system DSD : Access via 'NULL' object reference not possible.

The error occurred on the application server ddrsap12_DSD_01 and in the work process 0 .

The termination type was: RABAX_STATE

The ABAP call stack was:

Method: WDDOINIT of program /1BCWDY/LUR96POELQNL3TIUWPYS==CP

Method: IF_WDR_VIEW_DELEGATE~WD_DO_INIT of program /1BCWDY/LUR96POELQNL3TIUWPYS==CP

Method: DO_INIT of program CL_WDR_DELEGATING_VIEW========CP

Method: INIT_CONTROLLER of program CL_WDR_CONTROLLER=============CP

Method: INIT_CONTROLLER of program CL_WDR_VIEW===================CP

Method: INIT of program CL_WDR_CONTROLLER=============CP

Method: GET_VIEW of program CL_WDR_VIEW_MANAGER===========CP

Method: BIND_ROOT of program CL_WDR_VIEW_MANAGER===========CP

Method: INIT of program CL_WDR_VIEW_MANAGER===========CP

Method: INIT_CONTROLLER of program CL_WDR_INTERFACE_VIEW=========CP

Heading 2: h2. ST22 - Dump Analysis

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 "WDDOINIT" "(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.

Information on where terminated

Termination occurred in the ABAP program "/1BCWDY/LUR96POELQNL3TIUWPYS==CP" -

in "WDDOINIT".

The main program was "SAPMHTTP ".

In the source code you have the termination point in line 4640

of the (Include) program "/1BCWDY/B_LUXVEOR5WUW66V6QRRNU".

Termination occurred in a Web Dynpro application

Web Dynpro Component ZWD_HAP_DOCUMENT_HEADER

Web Dynpro Controller VW_HEADER_MAIN

The termination is caused because exception "CX_SY_REF_IS_INITIAL" occurred in

procedure "WDDOINIT" "(METHOD)", but it was neither handled locally nor

declared

in the RAISING clause of its signature.

The procedure is in program "/1BCWDY/LUR96POELQNL3TIUWPYS==CP "; its source