ClassCastException in CollisionTreeManager.generateCollisionTree

maybe its enough if you make a check if (x instanceof TriMesh), if its not, just ignore it and don't make a cast?

Yes I suppose so - but this is in CollisionTreeManager, in the JME core code, not in my code. Is it a JME bug then? Or can I somehow make the check in my code (not sure how).