Web Inspector: EventLoop::cycle() should not send nil NSEvents
authorbburg@apple.com <bburg@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 5 Oct 2017 23:02:52 +0000 (23:02 +0000)
committerbburg@apple.com <bburg@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 5 Oct 2017 23:02:52 +0000 (23:02 +0000)
commit378b171bd467701306879cbc59d877826c2b5b30
treed23c5e4b144974d49c1399d978b7eddfdfe3450c
parentf7977029be6205f957542ff55beb1f8d8a6436c1
Web Inspector: EventLoop::cycle() should not send nil NSEvents
https://bugs.webkit.org/show_bug.cgi?id=177971
<rdar://problem/20387399>

Reviewed by Joseph Pecoraro.

It is possible for the next matching event to be nil.
WebKit clients don't expect to be sent a nil NSEvent, so add a null check here.

* platform/mac/EventLoopMac.mm:
(WebCore::EventLoop::cycle):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@222940 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/platform/mac/EventLoopMac.mm