summaryrefslogtreecommitdiff
path: root/wizards
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-01-20 10:59:34 +0000
committerCaolán McNamara <caolanm@redhat.com>2016-01-20 10:59:34 +0000
commit24bfa15bd3d169022dafba177da29e49241892e8 (patch)
tree5dc37c8e72705e178602141d7879912fe9ff67eb /wizards
parent5ccca93c1c4b4ba0b835e4bbf59a1306bb97c716 (diff)
coverity#1326466 Dereference null return value
Change-Id: Iea0dc27bf32499e1f8b38d8a0e90cebe6ab8b31f
Diffstat (limited to 'wizards')
-rw-r--r--wizards/com/sun/star/wizards/common/Configuration.java16
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)