diff --git a/ui/app/AppLayouts/Onboarding/popups/UploadProfilePicModal.qml b/ui/app/AppLayouts/Onboarding/popups/UploadProfilePicModal.qml index 26a725678b..501815ff67 100644 --- a/ui/app/AppLayouts/Onboarding/popups/UploadProfilePicModal.qml +++ b/ui/app/AppLayouts/Onboarding/popups/UploadProfilePicModal.qml @@ -81,8 +81,10 @@ StatusModal { qsTrId("image-files----jpg---jpeg---png-") ] onAccepted: { - cropImageModal.selectedImage = imageDialog.fileUrls[0]; - cropImageModal.open() + if(imageDialog.fileUrls.length > 0) { + cropImageModal.selectedImage = imageDialog.fileUrls[0]; + cropImageModal.open() + } } } }