summaryrefslogtreecommitdiff
path: root/qadevOOo
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-01-20 17:35:06 +0000
committerCaolán McNamara <caolanm@redhat.com>2016-01-20 19:08:33 +0000
commit13b1c4a684b2c344660e1e9caaa4b4e667ca65a9 (patch)
tree60e6e510a81c9ab80abdc8f780135a5e7fffd532 /qadevOOo
parent960acbfdee1bcd2053a84c95f1c7ed046d3ade23 (diff)
coverity#1326388 Dereference null return value
Change-Id: Ifad565e1548a9564196bfcd7b77d81ebb97231f6
Diffstat (limited to 'qadevOOo')
-rw-r--r--qadevOOo/runner/util/utils.java9
1 files changed, 1 insertions, 8 deletions
diff --git a/qadevOOo/runner/util/utils.java b/qadevOOo/runner/util/utils.java
index 914b0664e6b4..c3f34589425b 100644
--- a/qadevOOo/runner/util/utils.java
+++ b/qadevOOo/runner/util/utils.java
@@ -203,15 +203,8 @@ public class utils {
*
*/
public static String getOfficeUserPath(XMultiServiceFactory msf) {
- String userPath = null;
-
// get a folder located in the user dir
- try {
- userPath = getOfficeSettingsValue(msf, "UserConfig");
- } catch (Exception e) {
- System.out.println("Couldn't get Office User Path");
- e.printStackTrace();
- }
+ String userPath = getOfficeSettingsValue(msf, "UserConfig");
// strip the returned folder to the user dir
if (userPath.charAt(userPath.length() - 1) == '/') {