mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-15 08:53:07 +09:00
Issue #252 - Follow-up: Include a null check against mDocument
This commit is contained in:
parent
b2d7504112
commit
7c759b2c21
1 changed files with 1 additions and 1 deletions
|
|
@ -2986,7 +2986,7 @@ PresShell::GoToAnchor(const nsAString& aAnchorName, bool aScroll,
|
|||
}
|
||||
|
||||
// Search for an anchor element with a matching "name" attribute
|
||||
if (!content && htmlDoc) {
|
||||
if (!content && htmlDoc && mDocument) {
|
||||
// Find a matching list of named nodes
|
||||
nsCOMPtr<nsIDOMNodeList> list = mDocument->GetElementsByName(aAnchorName);
|
||||
if (list) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue