for (int i = 0; i < __pBookmarkList->GetCount();i++)
{
BookmarkData* pBookMark = dynamic_cast< BookmarkData* >(__pBookmarkList->GetAt(i));
- if(pHistory->GetHistoryUrl().CompareTo(pBookMark->GetUrl()) == 0)
+ if(pBookMark != null && pHistory->GetHistoryUrl().CompareTo(pBookMark->GetUrl()) == 0)
{
urlFoundInBookmark = true;
break;
}
- else
- {
- pBookmarkBitmap = AppResource::GetInstance()->GetBitmapN(IDB_ICON_BOOKMARK_OFF_TEMP);
- }
}
}
if (urlFoundInBookmark == true)
for (int i = 0; i < __pBookmarkList->GetCount(); i++)
{
pBookMark = dynamic_cast< BookmarkData* >(__pBookmarkList->GetAt(i));
- if (toggledUrl.CompareTo(pBookMark->GetUrl()) == 0)
+ if (pBookMark != null && toggledUrl.CompareTo(pBookMark->GetUrl()) == 0)
{
bookmarkFound = true;
break;
__pFindWordCountLabel->SetText(L"0/0");
__pWebViewer->SearchText(L"aaaabbbbcccc",true);
__pFindWordControl->SetShowState(false);
- if (__pFindWordEditField)
- __pFindWordEditField->HideKeypad();
+ __pFindWordEditField->HideKeypad();
}
if(__pAddressbar->GetShowState() == false)
{