diff --git a/gfx/layers/apz/src/APZCTreeManager.cpp b/gfx/layers/apz/src/APZCTreeManager.cpp index 7da44bce5a61..d6757151b7f0 100644 --- a/gfx/layers/apz/src/APZCTreeManager.cpp +++ b/gfx/layers/apz/src/APZCTreeManager.cpp @@ -814,17 +814,16 @@ void APZCTreeManager::NotifyScrollbarDragInitiated( ScrollDirection aDirection) const { RefPtr controller = GetContentController(aGuid.mLayersId); - MOZ_ASSERT(controller); - controller->NotifyAsyncScrollbarDragInitiated(aDragBlockId, aGuid.mScrollId, - aDirection); + if (controller) { + controller->NotifyAsyncScrollbarDragInitiated(aDragBlockId, aGuid.mScrollId, + aDirection); + } } void APZCTreeManager::NotifyScrollbarDragRejected( const ScrollableLayerGuid& aGuid) const { RefPtr controller = GetContentController(aGuid.mLayersId); - // If you hit this crash and have STR, please file a bug! - MOZ_ASSERT(controller); if (controller) { controller->NotifyAsyncScrollbarDragRejected(aGuid.mScrollId); }