CoverityFix-CID:1350648 Dropped or ignored exception 33/20133/2
Nimish Kapoor [Thu, 7 Jun 2018 13:19:20 +0000 (18:19 +0530)]
Change-Id: I45430b323e570a6b876f6b5f437695515ecdabe0

scilab/modules/commons/src/java/org/scilab/modules/commons/gui/ScilabCaret.java

index 0a8489f..a469166 100644 (file)
@@ -147,7 +147,9 @@ public class ScilabCaret extends DefaultCaret {
             int pos = editor.getCaretPosition();
             try {
                 r = editor.modelToView(pos);
-            } catch (BadLocationException e) { }
+            } catch (BadLocationException e) {
+                System.err.println(e);
+            }
             if (r != null && (r.width != 0 || r.height != 0)) {
                 if ( (x != r.x) || (y != r.y) ) {
                     repaint();