Bug 1029695 - [rule view] Need null check for ruleview-propertyvalue query in getParentTextProperty r=harth

This commit is contained in:
Gabriel Luong 2014-06-25 16:39:00 +02:00
parent 5634a307aa
commit de22c1508d

View File

@ -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;
}
/**