coverity#1326552 Dereference before null check

Change-Id: I5a3fb6b5e9966a8e0c5dd0175e4f4f3292025a2c
This commit is contained in:
Caolán McNamara
2015-10-20 15:29:58 +01:00
parent f43dde5d2d
commit f8ce21a346

View File

@@ -136,7 +136,7 @@ public class ParcelBrowseNode extends PropertySet implements
}
public boolean hasChildNodes() {
if (container != null && container.hasByName(getName()) && parcel != null) {
if (container != null && parcel != null && container.hasByName(getName())) {
return parcel.hasElements();
}