mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 01:48:05 +00:00
Added check for null history element object in nsiHistory.cpp
This commit is contained in:
parent
657d299244
commit
04327b829c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user