Tessellation Error?

Am doing some Planetary System Simulation stuff . It’s doing well apart from occasionally , when I launch a planet too much near the sun the planet move through the sun very fast and the console spits out this error in bright red letters

“Tessellation Error: gluTessBeginContour() must precede a gluTessEndContour()”

Of course I can do a bit of validation coding, but I am wondering What does this error mean and what it has to do with my code.

The code is available in the gihub link.

I get the same error on my sketch just when launching it