From cb7df58fdd46ef58abca20ce101b16b40f802745 Mon Sep 17 00:00:00 2001 From: Regin Larsen Date: Tue, 12 Jan 2016 16:25:29 +0100 Subject: [PATCH] Fix the media picker not rendering when a media item has no image --- .../propertyeditors/imagecropper/imagecropper.controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/imagecropper/imagecropper.controller.js b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/imagecropper/imagecropper.controller.js index 42eee9b4a8..f76b069c2f 100644 --- a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/imagecropper/imagecropper.controller.js +++ b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/imagecropper/imagecropper.controller.js @@ -109,7 +109,7 @@ angular.module('umbraco') //NOTE: The 'entity' can be either a normal media entity or an "entity" returned from the entityResource // they contain different data structures so if we need to query against it we need to be aware of this. mediaHelper.registerFileResolver("Umbraco.ImageCropper", function (property, entity, thumbnail) { - if (property.value.src) { + if (property.value && property.value.src) { if (thumbnail === true) { return property.value.src + "?width=500&mode=max";