diff options
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 +} |