未验证 提交 4d106f85 编写于 作者: C Chinmay Garde 提交者: GitHub

In case of empty Dart data responses, don’t call the buffer method on null. (#5114)

Fixes regression introduced in https://github.com/flutter/engine/pull/5101.
上级 a3865198
......@@ -729,7 +729,7 @@ class Window {
final Zone registrationZone = Zone.current;
return (Uint8List data) {
registrationZone.runUnaryGuarded(callback, data.buffer.asByteData());
registrationZone.runUnaryGuarded(callback, data?.buffer?.asByteData());
};
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册