summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryami <34216515+kn-yami@users.noreply.github.com>2019-04-03 19:10:37 +0200
committeryami <34216515+kn-yami@users.noreply.github.com>2019-04-03 19:10:37 +0200
commit00baf283622b47ad7926c6e62364854d3dfbc00a (patch)
treebba47fa5fa14856ea3ab47039901e43585cb5f1c
parent71c0318322ce998ea411f343607de524b2058799 (diff)
downloadUXP-00baf283622b47ad7926c6e62364854d3dfbc00a.tar
UXP-00baf283622b47ad7926c6e62364854d3dfbc00a.tar.gz
UXP-00baf283622b47ad7926c6e62364854d3dfbc00a.tar.lz
UXP-00baf283622b47ad7926c6e62364854d3dfbc00a.tar.xz
UXP-00baf283622b47ad7926c6e62364854d3dfbc00a.zip
add a nullptr check in nsSVGUtils::PaintFrameWithEffects
-rw-r--r--layout/svg/nsSVGUtils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/layout/svg/nsSVGUtils.cpp b/layout/svg/nsSVGUtils.cpp
index 0bded21ff..b8794a05d 100644
--- a/layout/svg/nsSVGUtils.cpp
+++ b/layout/svg/nsSVGUtils.cpp
@@ -685,7 +685,7 @@ nsSVGUtils::PaintFrameWithEffects(nsIFrame *aFrame,
bool isOK = effectProperties.HasNoFilterOrHasValidFilter();
nsSVGClipPathFrame *clipPathFrame = effectProperties.GetClipPathFrame(&isOK);
nsSVGMaskFrame *maskFrame = effectProperties.GetFirstMaskFrame(&isOK);
- if (!isOK) {
+ if (!isOK || !maskFrame) {
// Some resource is invalid. We shouldn't paint anything.
return DrawResult::SUCCESS;
}