出现错误no source available for 0x8FBD75(ekern.exe),好像是因为空指针的问题,小弟初学,看不出来问题,求指点
{
TBuf<50> name(_L(""));
CAknTextQueryDialog* dialog=CAknTextQueryDialog::NewL(name);
if (dialog->ExecuteLD(R_FIGHT_CONTAINER_DATA_QUERY1))
{
CPbkContactEngine * iPbkContactEngine = CPbkContactEngine::NewL();
CContactIdArray* pArrayOfID = iPbkContactEngine->FindLC(name);
CleanupStack::PushL(pArrayOfID);
CleanupStack::PushL(iPbkContactEngine);
TInt nCount = pArrayOfID->Count();
TInt i = 0;
for (i = 0; i < nCount; i++)
{
CPbkContactItem* pContactItem = iPbkContactEngine->ReadContactLC(
(*pArrayOfID)[i]);
if (pContactItem == NULL)
{
continue;
}
TPbkContactItemField* pCntField;
CleanupStack::PushL(pCntField);
pCntField = pContactItem->FindField(EPbkFieldIdLastName);
TBuf<50> pFirstName;
if (pCntField)
{
pCntField->GetTextL(pFirstName);
}
else
{