mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-02 13:58:40 +09:00
No issue - restore nullptr-check
This commit is contained in:
parent
8db40dbbb5
commit
8a21d95ea3
1 changed files with 4 additions and 0 deletions
|
|
@ -825,6 +825,10 @@ nsImageMap::AddArea(HTMLAreaElement* aArea)
|
|||
MOZ_ASSERT_UNREACHABLE("FindAttrValueIn returned an unexpected value.");
|
||||
break;
|
||||
}
|
||||
if (!area) {
|
||||
// Possibly OOM, or invalid attr (does not assert in release); early exit
|
||||
return;
|
||||
}
|
||||
|
||||
//Add focus listener to track area focus changes
|
||||
aArea->AddSystemEventListener(NS_LITERAL_STRING("focus"), this, false, false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue