summaryrefslogtreecommitdiff
path: root/Source/WebKit2/Platform/IPC/unix/ConnectionUnix.cpp
diff options
context:
space:
mode:
authorKonstantin Tokarev <annulen@yandex.ru>2020-09-22 14:30:04 +0300
committerKonstantin Tokarev <annulen@yandex.ru>2020-09-24 16:58:02 +0300
commitac8ebc6c3a56064f88f5506e5e3783ab7bee2456 (patch)
tree47537790a381a6bf983edf9bb4093e4c575a16e0 /Source/WebKit2/Platform/IPC/unix/ConnectionUnix.cpp
parent5a99e5d4c67bfa99c822746cbfbd80e398d23d97 (diff)
downloadqtwebkit-5.212.tar.gz
Enable QML tests5.212
Change-Id: I10968ff39311aac6af328e5f13e316dbfc3c7a1e Reviewed-by: Konstantin Tokarev <annulen@yandex.ru>
Diffstat (limited to 'Source/WebKit2/Platform/IPC/unix/ConnectionUnix.cpp')
-rw-r--r--Source/WebKit2/Platform/IPC/unix/ConnectionUnix.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/WebKit2/Platform/IPC/unix/ConnectionUnix.cpp b/Source/WebKit2/Platform/IPC/unix/ConnectionUnix.cpp
index 3902003f9..7280c56d9 100644
--- a/Source/WebKit2/Platform/IPC/unix/ConnectionUnix.cpp
+++ b/Source/WebKit2/Platform/IPC/unix/ConnectionUnix.cpp
@@ -368,6 +368,10 @@ static ssize_t readBytesFromSocket(int socketDescriptor, Vector<uint8_t>& buffer
void Connection::readyReadHandler()
{
#if PLATFORM(QT)
+ if (!m_socketNotifier) {
+ WTFLogAlways("Error receiving IPC message on socket %d in process %d: m_socketNotifier is null", m_socketDescriptor, getpid());
+ return;
+ }
SocketNotifierResourceGuard socketNotifierEnabler(m_socketNotifier);
#endif