From 79e2a60bf9534908245e79a7a37b1525ed6a058f Mon Sep 17 00:00:00 2001 From: "gyeongseok.seo" Date: Fri, 14 Jun 2013 09:54:09 +0900 Subject: [PATCH] [Title] Fixed sonar error [Desc.] [Issue] Change-Id: I182c2b7cc1bbfd768a530e1629f535ab861b9885 --- org.tizen.cli/src/org/tizen/cli/exec/WRTLauncher.java | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/org.tizen.cli/src/org/tizen/cli/exec/WRTLauncher.java b/org.tizen.cli/src/org/tizen/cli/exec/WRTLauncher.java index 4b80cd1..86f7c2a 100755 --- a/org.tizen.cli/src/org/tizen/cli/exec/WRTLauncher.java +++ b/org.tizen.cli/src/org/tizen/cli/exec/WRTLauncher.java @@ -163,14 +163,10 @@ extends AbstractLauncher String sdbPath = InstallPathConfig.getSDBPath(); logger.trace( "sdb lib Path :{}", sdbPath ); - SmartDevelopmentBridge bridge = null; - try { - bridge = SmartDevelopmentBridge.createBridge(sdbPath, true); - - // wait sdb start - } catch (Throwable t) { - // don't throw exception parent - logger.error("Problem occurred while initializing sdb", t.getMessage(), t); + SmartDevelopmentBridge bridge = SmartDevelopmentBridge.createBridge(sdbPath, true); + + if ( null == bridge ) { + prompter.notify( "Problem occurred while initializing sdb" ); } if (OSChecker.isWindows()) { -- 2.7.4