mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-24 08:07:30 +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.");
|
MOZ_ASSERT_UNREACHABLE("FindAttrValueIn returned an unexpected value.");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
if (!area) {
|
||||||
|
// Possibly OOM, or invalid attr (does not assert in release); early exit
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
//Add focus listener to track area focus changes
|
//Add focus listener to track area focus changes
|
||||||
aArea->AddSystemEventListener(NS_LITERAL_STRING("focus"), this, false, false);
|
aArea->AddSystemEventListener(NS_LITERAL_STRING("focus"), this, false, false);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue