I was following the example to retrive the location from the link :-

But in this link when user put the command to retrieve the location it calls the function

void CLocationExampleEngine::ActivateGpsL().

After that in side this function

we are initializing the pointer of CLocationExamplePositionRequestor.

if (!iPositionRequestor)
iPositionRequestor = CLocationExamplePositionRequestor::NewL(KUpdateInterval,*this);

but here in this function when i am debugging i am getting error on the line

if (!iPositionRequestor)