diff --git a/src/mbgl/renderer/buckets/line_bucket.cpp b/src/mbgl/renderer/buckets/line_bucket.cpp index f8c0198a728..bf5c7a46c9c 100644 --- a/src/mbgl/renderer/buckets/line_bucket.cpp +++ b/src/mbgl/renderer/buckets/line_bucket.cpp @@ -54,6 +54,10 @@ void LineBucket::addFeature(const GeometryTileFeature& feature, void LineBucket::addGeometry(const GeometryCoordinates& coordinates, const GeometryTileFeature& feature, const CanonicalTileID& canonical) { + // Ignore empty coordinates. + if (coordinates.empty()) { + return; + } gfx::PolylineGenerator> generator( vertices, LineProgram::layoutVertex,