diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-10-15 13:02:56 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-10-15 14:26:06 +0100 |
commit | 585757d3fe0ae9f796042d75e38b6b1226cdd4a5 (patch) | |
tree | e415e3f6106bec354a7061d0a3ee1ea6ad765cca /scripting/java | |
parent | f1e4e73dfc55ab5a2d2e53b9e64bb012dedf5873 (diff) |
coverity#1326240 Explicit null dereferenced
Change-Id: Ic84b5fbff0fbd7b8a750a7e40f2dffafe868b5d5
Diffstat (limited to 'scripting/java')
-rw-r--r-- | scripting/java/com/sun/star/script/framework/browse/ProviderBrowseNode.java | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/scripting/java/com/sun/star/script/framework/browse/ProviderBrowseNode.java b/scripting/java/com/sun/star/script/framework/browse/ProviderBrowseNode.java index 868af0874618..17064de55830 100644 --- a/scripting/java/com/sun/star/script/framework/browse/ProviderBrowseNode.java +++ b/scripting/java/com/sun/star/script/framework/browse/ProviderBrowseNode.java @@ -145,8 +145,13 @@ public class ProviderBrowseNode extends PropertySet implements result = false; } - LogUtils.DEBUG("***** ProviderBrowseNode.hasChildNodes(): " + "name=" + name + + if (container == null) { + LogUtils.DEBUG("***** ProviderBrowseNode.hasChildNodes(): " + "name=" + name + + ", path=<none>, result=" + result); + } else { + LogUtils.DEBUG("***** ProviderBrowseNode.hasChildNodes(): " + "name=" + name + ", path=" + container.getParcelContainerDir() + ", result=" + result); + } return result; } @@ -256,4 +261,4 @@ public class ProviderBrowseNode extends PropertySet implements public boolean hasProperty(String aName) { return false; } -}
\ No newline at end of file +} |