Skip to content

Typo in assert #538

@AppChecker

Description

@AppChecker

Hi.

In file jme3-jbullet/src/main/java/com/jme3/bullet/PhysicsSpace.java, line 230

bp.clientObject is checked twice:

assert (
bp.clientObject instanceof com.bulletphysics.collision.dispatch.CollisionObject && 
bp.clientObject instanceof com.bulletphysics.collision.dispatch.CollisionObject
);

Probably, it should be:

assert (
bp.clientObject instanceof com.bulletphysics.collision.dispatch.CollisionObject && 
bp1.clientObject instanceof com.bulletphysics.collision.dispatch.CollisionObject
);

This possible defect found by statis analyzer AppChecker

Metadata

Metadata

Assignees

Labels

bugSomething that is supposed to work, but doesn't. More severe than a "defect".

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions