From a564d53ff3859543b5f9e0469566228d42a09cd2 Mon Sep 17 00:00:00 2001 From: Leo Franchi Date: Fri, 20 May 2011 15:18:04 -0400 Subject: [PATCH] Crash safety --- src/web/api_v1.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/web/api_v1.cpp b/src/web/api_v1.cpp index 4088c4a05..eba9823bb 100644 --- a/src/web/api_v1.cpp +++ b/src/web/api_v1.cpp @@ -60,6 +60,9 @@ void Api_v1::auth_2( QxtWebRequestEvent* event, QString arg ) { qDebug() << "AUTH_2 HTTP" << event->url.toString() << arg; + if( event->content.isNull() ) + return; + QString params = QUrl::fromPercentEncoding( event->content->readAll() ); params = params.mid( params.indexOf( '?' ) ); QStringList pieces = params.split( '&' );