Commit b7f00a64 authored by Todd Volkert's avatar Todd Volkert Committed by GitHub

Defensively handle case of VMservice message that has no id. (#8587)

parent 44dbecc6
......@@ -83,6 +83,10 @@ abstract class _Message implements Comparable<_Message> {
@override
int compareTo(_Message other) {
if (id == null) {
printError('Invalid VMService message data detected: $data');
return -1;
}
final int result = id.compareTo(other.id);
if (result != 0) {
return result;
......
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