diff --git a/retroshare-gui/src/gui/FileTransfer/BannedFilesDialog.cpp b/retroshare-gui/src/gui/FileTransfer/BannedFilesDialog.cpp index 5be060b09..ccaa456f1 100644 --- a/retroshare-gui/src/gui/FileTransfer/BannedFilesDialog.cpp +++ b/retroshare-gui/src/gui/FileTransfer/BannedFilesDialog.cpp @@ -48,6 +48,9 @@ void BannedFilesDialog::unbanFile() QTableWidgetItem *item = ui.bannedFiles_TW->item(row, COLUMN_FILE_HASH); + if(!item) + return ; + RsFileHash hash(item->data(Qt::UserRole).toString().toStdString()) ; rsFiles->unbanFile(hash) ;