Skip to content

Commit

Permalink
fix npe
Browse files Browse the repository at this point in the history
  • Loading branch information
wdehoog committed Jan 5, 2019
1 parent 1b2d6aa commit afdfe3c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/o2/o2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,10 @@ void O2::onRefreshError(QNetworkReply::NetworkError error) {
qWarning() << "O2::onRefreshError: " << error;
unlink();
timedReplies_.remove(refreshReply);
Q_EMIT refreshFinished(error, refreshReply->errorString());
QString errorString = QString("errorCode: %1").arg(error);
if(error == QNetworkReply::AuthenticationRequiredError)
errorString = "Authentication Required Error";
Q_EMIT refreshFinished(error, errorString);
}

void O2::serverHasClosed(bool paramsfound)
Expand Down

0 comments on commit afdfe3c

Please sign in to comment.