diff options
author | Bea Lam <bea.lam@nokia.com> | 2009-11-10 02:40:09 (GMT) |
---|---|---|
committer | Bea Lam <bea.lam@nokia.com> | 2009-11-10 02:40:09 (GMT) |
commit | 3b37a6463c7598adb009bd3fe2e20587a19425ae (patch) | |
tree | 6d4720d7216eca087adecaa5dae9613deaa63663 /src/declarative/debugger | |
parent | f4bb7d6a17a9106af681fba8be4c734e374ff167 (diff) | |
download | Qt-3b37a6463c7598adb009bd3fe2e20587a19425ae.zip Qt-3b37a6463c7598adb009bd3fe2e20587a19425ae.tar.gz Qt-3b37a6463c7598adb009bd3fe2e20587a19425ae.tar.bz2 |
Fix crash bug where socket is 0.
Diffstat (limited to 'src/declarative/debugger')
-rw-r--r-- | src/declarative/debugger/qmldebugclient.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/declarative/debugger/qmldebugclient.cpp b/src/declarative/debugger/qmldebugclient.cpp index 4888758..2cd1301 100644 --- a/src/declarative/debugger/qmldebugclient.cpp +++ b/src/declarative/debugger/qmldebugclient.cpp @@ -178,6 +178,8 @@ bool QmlDebugClient::isConnected() const { Q_D(const QmlDebugClient); + if (!d->client) + return false; return d->client->isConnected(); } |