Commit ba9c0be6 authored by Dr. Michael Petter's avatar Dr. Michael Petter

fixed npe in interpreting messages

parent 8f8858cf
......@@ -274,10 +274,12 @@ public class TTTProcessor {
//add the saved messages
if(firstWhiteboardMessage != null){
firstWhiteboardMessage.setTimestamp(0);
firstCursorMessage.setTimestamp(0);
messages.add(1, firstWhiteboardMessage);
messages.add(2, firstCursorMessage);
firstWhiteboardMessage.setTimestamp(0);
messages.add(1, firstWhiteboardMessage);
if (firstCursorMessage !=null){
firstCursorMessage.setTimestamp(0);
messages.add(2, firstCursorMessage);
}
}
messages.add(last);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment