mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1029695 - [rule view] Need null check for ruleview-propertyvalue query in getParentTextProperty r=harth
This commit is contained in:
parent
5634a307aa
commit
de22c1508d
@ -2869,7 +2869,13 @@ function getParentTextProperty(node) {
|
||||
if (!parent) {
|
||||
return null;
|
||||
}
|
||||
return parent.querySelector(".ruleview-propertyvalue").textProperty;
|
||||
|
||||
let propValue = parent.querySelector(".ruleview-propertyvalue");
|
||||
if (!propValue) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return propValue.textProperty;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user