Added check for null history element object in nsiHistory.cpp

This commit is contained in:
depstein%netscape.com 2001-10-05 00:35:44 +00:00
parent 657d299244
commit 04327b829c

View File

@ -145,6 +145,11 @@ void CNsIHistory::OnInterfacesNsishistory()
//GetEntryAtIndexTest(theSessionHistory,theHistoryEntry, theIndex);
theSessionHistory->GetEntryAtIndex(theIndex, PR_FALSE, getter_AddRefs(theHistoryEntry));
if (!theHistoryEntry)
{
QAOutput("We didn't get the History Entry object. No more tests performed.", 1);
return;
}
// nsiHistoryEntry.idl tests
// test URI attribute in nsIHistoryEntry.idl