Handle null pointer bugs
git-svn-id: svn://10.0.0.236/trunk@5480 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -476,8 +476,9 @@ ImageFrame::TriggerLink(nsIPresContext& aPresContext,
|
||||
const nsString& aTargetSpec,
|
||||
PRBool aClick)
|
||||
{
|
||||
nsILinkHandler* handler;
|
||||
if (NS_OK == aPresContext.GetLinkHandler(&handler)) {
|
||||
nsILinkHandler* handler = nsnull;
|
||||
aPresContext.GetLinkHandler(&handler);
|
||||
if (nsnull != handler) {
|
||||
if (aClick) {
|
||||
handler->OnLinkClick(this, aURLSpec, aTargetSpec);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user