Skip to content
Snippets Groups Projects
Commit 5a2e5912 authored by Richard Alam's avatar Richard Alam
Browse files

- fix ClassCastException when drawing scribble that results in gaps in the whiteboard marks

parent bc6d29ff
No related branches found
No related tags found
No related merge requests found
package org.bigbluebutton.conference.service.recorder.whiteboard;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
public class AddShapeWhiteboardRecordEvent extends AbstractWhiteboardRecordEvent {
......@@ -13,11 +14,12 @@ public class AddShapeWhiteboardRecordEvent extends AbstractWhiteboardRecordEvent
public void addAnnotation(Map<String, Object> annotation) {
for (Map.Entry<String, Object> entry : annotation.entrySet()) {
String key = entry.getKey();
Object value = entry.getValue();
if (key.equals("points")) {
eventMap.put("dataPoints", pointsToString((ArrayList<Double>) value));
ArrayList<Double> value = (ArrayList<Double>) entry.getValue();
eventMap.put("dataPoints", pointsToString(value));
} else {
Object value = entry.getValue();
eventMap.put(key, value.toString());
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment