From 82324a385e08667f24fc683b6a635309b09f1b0e Mon Sep 17 00:00:00 2001 From: "roo..li" Date: Sun, 14 Jul 2013 08:40:26 +0000 Subject: [PATCH] replaced a thrown exception with a logger warning git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10712 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- engine/src/core/com/jme3/input/InputManager.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/engine/src/core/com/jme3/input/InputManager.java b/engine/src/core/com/jme3/input/InputManager.java index 156168e41..3c5907b70 100644 --- a/engine/src/core/com/jme3/input/InputManager.java +++ b/engine/src/core/com/jme3/input/InputManager.java @@ -600,7 +600,8 @@ public class InputManager implements RawInputListener { public void deleteMapping(String mappingName) { Mapping mapping = mappings.remove(mappingName); if (mapping == null) { - throw new IllegalArgumentException("Cannot find mapping: " + mappingName); + //throw new IllegalArgumentException("Cannot find mapping: " + mappingName); + logger.log(Level.WARNING, "Cannot find mapping to be removed, skipping: {0}", mappingName); } ArrayList triggers = mapping.triggers;