forked from dorkbox/SystemTray
Fixed null pointer possibility in CssParser
This commit is contained in:
parent
2690d9aae4
commit
c44620712b
@ -403,6 +403,7 @@ class CssParser {
|
|||||||
|
|
||||||
// get the attribute from the highest scoring node
|
// get the attribute from the highest scoring node
|
||||||
//noinspection ConstantConditions
|
//noinspection ConstantConditions
|
||||||
|
if (maxNode != null) {
|
||||||
for (CssAttribute attribute : maxNode.attributes) {
|
for (CssAttribute attribute : maxNode.attributes) {
|
||||||
if (equalsOrContained) {
|
if (equalsOrContained) {
|
||||||
if (attribute.key.equals(attributeName)) {
|
if (attribute.key.equals(attributeName)) {
|
||||||
@ -415,6 +416,7 @@ class CssParser {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user