diff options
Diffstat (limited to 'wizards')
-rw-r--r-- | wizards/com/sun/star/wizards/common/Configuration.java | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/wizards/com/sun/star/wizards/common/Configuration.java b/wizards/com/sun/star/wizards/common/Configuration.java index c69d029e7cc5..3fcef49e8991 100644 --- a/wizards/com/sun/star/wizards/common/Configuration.java +++ b/wizards/com/sun/star/wizards/common/Configuration.java @@ -153,19 +153,11 @@ public abstract class Configuration } } - public static XNameAccess getChildNodebyIndex(XNameAccess _xNameAccess, int _index) + public static XNameAccess getChildNodebyIndex(XNameAccess _xNameAccess, int _index) throws com.sun.star.uno.Exception { - try - { - String[] snames = _xNameAccess.getElementNames(); - Object oNode = _xNameAccess.getByName(snames[_index]); - return UnoRuntime.queryInterface(XNameAccess.class, oNode); - } - catch (Exception e) - { - e.printStackTrace(System.err); - return null; - } + String[] snames = _xNameAccess.getElementNames(); + Object oNode = _xNameAccess.getByName(snames[_index]); + return UnoRuntime.queryInterface(XNameAccess.class, oNode); } public static XNameAccess getChildNodebyName(XNameAccess _xNameAccessNode, String _SubNodeName) |