Getting error in recreating object in Box2D

Hi,
I am working on a game using citrus engine. In the game when i am creating Box2D objects after destroying the objects, I am getting following error:

RangeError: Error #1125: The index 0 is out of range 0.
at Box2DAS.Collision.Shapes::b2PolygonShape/Draw()
at Box2DAS.Dynamics::b2DebugDraw/DrawShape()
at Box2DAS.Dynamics::b2DebugDraw/Draw()
at com.citrusengine.view.spriteview::Box2DDebugArt/handleEnterFrame()
Seems to me you delete vertices but not objects, or you create new objects with vertices pointing to old object vertices and when you delete old objects, the reference gets null.
If you paste some of your source code (handleEnterFrame function, and where you create and delete objects and their vertices) we should be able to give you a more precise answer though.

Original thread: https://box2d.org/forum/viewtopic.php?t=7822