Coverity fixed: #1351003 15/19215/4
Nikhil Goel [Wed, 22 Mar 2017 05:33:48 +0000 (10:33 +0530)]
Change-Id: Ie52daba59a4ba78357972002acf4918c593a1a7b

scilab/modules/gui/src/java/org/scilab/modules/gui/bridge/window/OSXAdapter.java

index 4bce176..b39360e 100644 (file)
@@ -162,8 +162,8 @@ public class OSXAdapter implements InvocationHandler {
                         Method getFilenameMethod = appleEvent.getClass().getDeclaredMethod("getFilename", (Class[])null);
                         String filename = (String) getFilenameMethod.invoke(appleEvent, (Object[])null);
                         this.targetMethod.invoke(this.targetObject, new Object[] { filename });
-                    } catch (Exception ex) {
-
+                    } catch (RuntimeException ex) {
+                    }catch (Exception ex) {
                     }
                 }
                 return true;