diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-10-15 12:54:13 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-10-15 14:26:05 +0100 |
commit | 52e8a8062852c10cb8f37402a97f5475db78b472 (patch) | |
tree | 294e7ab137b2ffa9a0e616b9c0cc5449aee73fc6 /scripting/java | |
parent | 528d2ce57ac5736860b69d9a2f414daa79b98794 (diff) |
coverity#1326236 Explicit null dereferenced
Change-Id: Ic89c9b39f5f9c260581130da528bc0f514d4ef06
Diffstat (limited to 'scripting/java')
-rw-r--r-- | scripting/java/com/sun/star/script/framework/browse/ScriptBrowseNode.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/scripting/java/com/sun/star/script/framework/browse/ScriptBrowseNode.java b/scripting/java/com/sun/star/script/framework/browse/ScriptBrowseNode.java index 843320318c56..2d293be7dc4e 100644 --- a/scripting/java/com/sun/star/script/framework/browse/ScriptBrowseNode.java +++ b/scripting/java/com/sun/star/script/framework/browse/ScriptBrowseNode.java @@ -144,17 +144,16 @@ public class ScriptBrowseNode extends PropertySet implements public void updateURI(Parcel p) { parent = p; - ScriptMetaData data = null; try { - data = (ScriptMetaData)parent.getByName(name); + ScriptMetaData data = (ScriptMetaData)parent.getByName(name); + uri = data.getShortFormScriptURL(); } // TODO fix exception types to be caught here, should we rethrow? catch (Exception e) { LogUtils.DEBUG("** caught exception getting script data for " + name + " ->" + e.toString()); } - uri = data.getShortFormScriptURL(); } // implementation of XInvocation interface @@ -301,4 +300,4 @@ public class ScriptBrowseNode extends PropertySet implements public boolean hasProperty(String aName) { return false; } -}
\ No newline at end of file +} |