From d4be803f137444d0998c3d890aaf174c6212297c Mon Sep 17 00:00:00 2001 From: rkv Date: Wed, 14 Nov 2012 06:52:27 +0000 Subject: [PATCH] Check is added to avoid NullPointerException. --- Workspace/Siman/src/org/splat/wapp/Menu.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.39.2