Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #69 from lpotter/master
[connectionagent] fix crash accessing NULL object
  • Loading branch information
lpotter committed May 29, 2014
2 parents 48320a7 + f5bdca9 commit 6eb4539
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion connd/qconnectionagent.cpp
Expand Up @@ -225,10 +225,13 @@ void QConnectionAgent::serviceErrorChanged(const QString &error)
void QConnectionAgent::serviceStateChanged(const QString &state)
{
NetworkService *service = static_cast<NetworkService *>(sender());
if (!service)
return;
qDebug() << state << service->name() << service->strength();
qDebug() << "currentNetworkState" << currentNetworkState;

if (!service->favorite() || !netman->getTechnology(service->type())->powered()) {
if (!service->favorite() || !netman->getTechnology(service->type())
|| !netman->getTechnology(service->type())->powered()) {
qDebug() << "not fav or not powered";
return;
}
Expand Down

0 comments on commit 6eb4539

Please sign in to comment.