mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-05 21:57:41 +02:00
Fix: Called C++ object pointer is null
We already have a != NULL check in the next line, we should use it then.
This commit is contained in:
@@ -220,9 +220,9 @@ ConnectionManager::connectToPeer( const Tomahawk::peerinfo_ptr &peerInfo, bool l
|
|||||||
{
|
{
|
||||||
// We are already connected to this peer, so just add some more details.
|
// We are already connected to this peer, so just add some more details.
|
||||||
peerInfoDebug( peerInfo ) << "Existing connection found, not connecting.";
|
peerInfoDebug( peerInfo ) << "Existing connection found, not connecting.";
|
||||||
cconn->addPeerInfo( peerInfo );
|
|
||||||
if ( cconn != NULL )
|
if ( cconn != NULL )
|
||||||
{
|
{
|
||||||
|
cconn->addPeerInfo( peerInfo );
|
||||||
d_func()->controlConnection = QPointer<ControlConnection>( cconn );
|
d_func()->controlConnection = QPointer<ControlConnection>( cconn );
|
||||||
}
|
}
|
||||||
deactivate();
|
deactivate();
|
||||||
|
Reference in New Issue
Block a user