MISC : correct some potential bug 96/23196/1
authorseokgil.kang <seokgil.kang@samsung.com>
Thu, 19 Jun 2014 13:00:11 +0000 (22:00 +0900)
committerseokgil.kang <seokgil.kang@samsung.com>
Thu, 19 Jun 2014 13:00:11 +0000 (22:00 +0900)
Add the null checking logic for some variables.

Change-Id: I295951f81010956c7972b5dba31ceb17f64d6a0a
Signed-off-by: seokgil.kang <seokgil.kang@samsung.com>
org.eclipse.linuxtools.valgrind.ui/src/org/tizen/valgrind/ui/handler/ValgrindSaveFileHandler.java

index 6cb5d57..a41f52f 100644 (file)
@@ -61,6 +61,10 @@ public class ValgrindSaveFileHandler extends AbstractHandler {
        public Object execute(ExecutionEvent event) throws ExecutionException {
 
                part = (IViewPart)HandlerUtil.getActivePart(event);
+               if (part == null) {
+                       DialogUtil.openErrorDialog("ActivePart is null.");
+                       return null;
+               }
                shell = part.getSite().getShell();
                setStatusLine(new StatusLineMessageManager(part));