diff --git a/src/gui/properties/peerlistwidget.cpp b/src/gui/properties/peerlistwidget.cpp
index 69ebfd3..695b209 100644
--- a/src/gui/properties/peerlistwidget.cpp
+++ b/src/gui/properties/peerlistwidget.cpp
@@ -596,6 +596,9 @@ void PeerListWidget::getFlags(const peer_info& peer, QString& flags, QString& to
 
 double PeerListWidget::getPeerRelevance(const torrent_status& status, const libtorrent::peer_info &peer)
 {
+    if (!status.has_metadata)
+        return 0.0;
+
     int localMissing = 0;
     int remoteHaves = 0;
     libtorrent::bitfield local = status.pieces;
