From 74418653074a79c1348ed157d93eda526a2b8daf Mon Sep 17 00:00:00 2001 From: Kirill Vainer Date: Sat, 9 Sep 2017 13:32:15 -0400 Subject: [PATCH] Print the object with the problem in NativeObjectManager --- .../src/main/java/com/jme3/util/NativeObjectManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jme3-core/src/main/java/com/jme3/util/NativeObjectManager.java b/jme3-core/src/main/java/com/jme3/util/NativeObjectManager.java index 84e731962..9df5853ca 100644 --- a/jme3-core/src/main/java/com/jme3/util/NativeObjectManager.java +++ b/jme3-core/src/main/java/com/jme3/util/NativeObjectManager.java @@ -133,8 +133,8 @@ public class NativeObjectManager { // Unregister it from cleanup list. NativeObjectRef ref2 = refMap.remove(obj.getUniqueId()); if (ref2 == null) { - throw new IllegalArgumentException("This NativeObject is not " + - "registered in this NativeObjectManager"); + throw new IllegalArgumentException("The " + obj + " NativeObject is not " + + "registered in this NativeObjectManager"); } assert ref == null || ref == ref2;