Skip to content

Commit 6b127a4

Browse files
committed
CollisionSpace.cpp: add check for NewObject() returning NULL
1 parent e578a38 commit 6b127a4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/native/glue/com_jme3_bullet_CollisionSpace.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ struct JmeContactResultCallback
110110
jmeClasses::PhysicsCollisionEvent_Class,
111111
jmeClasses::PhysicsCollisionEvent_init, pcoA, pcoB, manifoldId);
112112
EXCEPTION_CHK(m_pEnv, btScalar(1));
113+
NULL_CHK(m_pEnv, eventObject, "unable to create", btScalar(1))
113114

114115
m_pEnv->CallVoidMethod(m_listener,
115116
jmeClasses::PhysicsCollisionListener_method, eventObject);

0 commit comments

Comments
 (0)