MISC: modify svace critical bug.(WGID: 257258)
authorjuhan1.kim <juhan1.kim@samsung.com>
Thu, 17 Aug 2017 07:27:44 +0000 (16:27 +0900)
committerjuhan1.kim <juhan1.kim@samsung.com>
Thu, 17 Aug 2017 07:27:44 +0000 (16:27 +0900)
prevent null exception.

Signed-off-by: juhan1.kim <juhan1.kim@samsung.com>
org.eclipse.linuxtools.valgrind.memcheck/src/org/eclipse/linuxtools/valgrind/memcheck/MemcheckLaunchDelegate.java

index 9b9e6d4..1c124c3 100644 (file)
@@ -29,6 +29,7 @@ import org.eclipse.linuxtools.valgrind.launch.ValgrindLaunchPlugin;
 import org.eclipse.linuxtools.valgrind.ui.IValgrindToolView;
 import org.eclipse.linuxtools.valgrind.ui.ValgrindUIPlugin;
 import org.eclipse.linuxtools.valgrind.ui.ValgrindViewPart;
+import org.tizen.common.util.IOUtil;
 import org.tizen.nativecommon.launch.TizenLaunchCommand;
 import org.tizen.nativecommon.launch.TizenLaunchDelegate;
 import org.xml.sax.SAXException;
@@ -103,7 +104,7 @@ public class MemcheckLaunchDelegate extends TizenLaunchDelegate implements IValg
                } catch (Exception e) {
                        e.printStackTrace();
                } finally {
-                       in.close();
+                       IOUtil.tryClose(in);
                }
        }