diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-10-20 15:29:58 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-10-20 21:18:35 +0100 |
commit | f8ce21a346ed1ed89c8a13ea2eddafca1e851d5d (patch) | |
tree | 390d999c0c5e2081cc20657b90a22551a7fe5f86 /scripting/java/com/sun/star/script/framework/browse | |
parent | f43dde5d2dd4afecf75ba69f1ad3d3f180c57321 (diff) |
coverity#1326552 Dereference before null check
Change-Id: I5a3fb6b5e9966a8e0c5dd0175e4f4f3292025a2c
Diffstat (limited to 'scripting/java/com/sun/star/script/framework/browse')
-rw-r--r-- | scripting/java/com/sun/star/script/framework/browse/ParcelBrowseNode.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripting/java/com/sun/star/script/framework/browse/ParcelBrowseNode.java b/scripting/java/com/sun/star/script/framework/browse/ParcelBrowseNode.java index abe00e1a5f99..8e9b3a0f368a 100644 --- a/scripting/java/com/sun/star/script/framework/browse/ParcelBrowseNode.java +++ b/scripting/java/com/sun/star/script/framework/browse/ParcelBrowseNode.java @@ -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(); } |