Fixed crash in IdEditDialog::updateId when no avater is set.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7886 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2015-01-29 16:09:32 +00:00
parent b7f4e292f1
commit 4cab5dc743

View file

@ -510,7 +510,7 @@ void IdEditDialog::updateId()
const QPixmap *pixmap = ui.avatarLabel->pixmap();
if (!pixmap->isNull())
if (pixmap && !pixmap->isNull())
{
QByteArray ba;
QBuffer buffer(&ba);