Print the object with the problem in NativeObjectManager

opengles2-fixes
Kirill Vainer 7 years ago
parent 88aaa079e3
commit 7441865307
  1. 4
      jme3-core/src/main/java/com/jme3/util/NativeObjectManager.java

@ -133,8 +133,8 @@ public class NativeObjectManager {
// Unregister it from cleanup list. // Unregister it from cleanup list.
NativeObjectRef ref2 = refMap.remove(obj.getUniqueId()); NativeObjectRef ref2 = refMap.remove(obj.getUniqueId());
if (ref2 == null) { if (ref2 == null) {
throw new IllegalArgumentException("This NativeObject is not " + throw new IllegalArgumentException("The " + obj + " NativeObject is not "
"registered in this NativeObjectManager"); + "registered in this NativeObjectManager");
} }
assert ref == null || ref == ref2; assert ref == null || ref == ref2;

Loading…
Cancel
Save