At the end of PlatformCALayer::drawLayerContents, we null check layerContents for the platformCALayerShowRepaintCounter call but not the platformCALayerIncrementRepaintCount call.
<rdar://37608882>
Created attachment 427450 [details] Patch
Created attachment 427452 [details] Patch
Committed r276867 (237213@main): <https://commits.webkit.org/237213@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 427452 [details].