CoverityFix-CID:1350493 Dereference null return value 39/20439/2
Nimish Kapoor [Sun, 5 Aug 2018 17:51:43 +0000 (22:51 +0530)]
Change-Id: I1dcc07e09b3e9a44820de779855e45eb1021e445

scilab/modules/scinotes/src/java/org/scilab/modules/scinotes/HelpOnTypingManager.java

index 62f5861..27b8c84 100644 (file)
@@ -165,7 +165,7 @@ public final class HelpOnTypingManager implements KeyListener {
                                 break;
                             default :
                         }
-                    } catch (BadLocationException exc) {
+                    } catch (BadLocationException | NullPointerException exc) {
                         System.err.println(exc);
                     }
                 }