fix(recording): fix publish crash when poll has no options/answers
This commit is contained in:
parent
1a960fd68d
commit
74210787ba
@ -355,6 +355,11 @@ def svg_render_shape_text(g, slide, shape)
|
||||
end
|
||||
|
||||
def svg_render_shape_poll(g, slide, shape)
|
||||
result = shape[:result]
|
||||
if result == "[]"
|
||||
BigBlueButton.logger.info("Poll #{shape[:shape_unique_id]} result is empty (no options/answers), ignoring...")
|
||||
return
|
||||
end
|
||||
poll_id = shape[:shape_unique_id]
|
||||
g['shape'] = "poll#{poll_id}"
|
||||
g['style'] = 'visibility:hidden'
|
||||
@ -366,7 +371,6 @@ def svg_render_shape_poll(g, slide, shape)
|
||||
width = shape_scale_width(slide, data_points[2])
|
||||
height = shape_scale_height(slide, data_points[3])
|
||||
|
||||
result = shape[:result]
|
||||
num_responders = shape[:num_responders]
|
||||
presentation = slide[:presentation]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user