From 13b1c4a684b2c344660e1e9caaa4b4e667ca65a9 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 20 Jan 2016 17:35:06 +0000 Subject: coverity#1326388 Dereference null return value Change-Id: Ifad565e1548a9564196bfcd7b77d81ebb97231f6 --- qadevOOo/runner/util/utils.java | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'qadevOOo/runner') 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) == '/') { -- cgit