diff --git a/src/libtomahawk/playlist/PlayableProxyModelPlaylistInterface.cpp b/src/libtomahawk/playlist/PlayableProxyModelPlaylistInterface.cpp index 7ac75e9eb..0712bb7d3 100644 --- a/src/libtomahawk/playlist/PlayableProxyModelPlaylistInterface.cpp +++ b/src/libtomahawk/playlist/PlayableProxyModelPlaylistInterface.cpp @@ -134,6 +134,10 @@ PlayableProxyModelPlaylistInterface::tracks() const void PlayableProxyModelPlaylistInterface::setCurrentIndex( qint64 index ) { + Q_ASSERT( m_proxyModel ); + if ( m_proxyModel.isNull() ) + return; + PlayableItem* item = static_cast( (void*)index ); if ( index < 0 || !item ) {