提交 101eb6d9 编写于 作者: M Matt Bierner

Fix possible nullderef

上级 4dd943cd
......@@ -372,6 +372,10 @@ class InlineImageView {
let imgElement: HTMLImageElement | null = null;
function updateScale(newScale: Scale) {
if (!img || !imgElement.parentElement) {
return;
}
if (newScale === 'fit') {
scale = 'fit';
img.addClass('scale-to-fit');
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册