src/network/access/qftp.cpp
changeset 22 79de32ba3296
parent 18 2f34d5167611
child 30 5dc02b23752f
--- a/src/network/access/qftp.cpp	Mon May 03 13:17:34 2010 +0300
+++ b/src/network/access/qftp.cpp	Fri May 14 16:40:13 2010 +0300
@@ -2309,6 +2309,12 @@
 void QFtpPrivate::_q_piError(int errorCode, const QString &text)
 {
     Q_Q(QFtp);
+
+    if (pending.isEmpty()) {
+        qWarning() << "QFtpPrivate::_q_piError was called without pending command!";
+        return;
+    }
+
     QFtpCommand *c = pending.first();
 
     // non-fatal errors