From: rkv Date: Wed, 14 Nov 2012 06:52:27 +0000 (+0000) Subject: Check is added to avoid NullPointerException. X-Git-Tag: Root_Delivery1_2012_12_06~76 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d4be803f137444d0998c3d890aaf174c6212297c;p=tools%2Fsiman.git Check is added to avoid NullPointerException. --- diff --git a/Workspace/Siman/src/org/splat/wapp/Menu.java b/Workspace/Siman/src/org/splat/wapp/Menu.java index 40a4f1c..b9016e3 100644 --- a/Workspace/Siman/src/org/splat/wapp/Menu.java +++ b/Workspace/Siman/src/org/splat/wapp/Menu.java @@ -173,7 +173,7 @@ public class Menu { public void selects(final String name) { Integer newdex = _indices.get(name); - if (_selection != null) { + if ((_selection != null) && _indices.containsKey(_selection)) { _menu.get(_indices.get(_selection)).unselect(); } if (newdex != null) {