Fix: Call to getUrl() on null if preview image is not set.

Occurred for files where no conversion to a preview image was possible.
This commit is contained in:
Sebastian Stumpf 2017-01-18 17:06:40 +01:00
parent 0b6a7b2362
commit 9cbbdb7e87

View File

@ -61,7 +61,7 @@ abstract class BaseConverter extends \yii\base\Object
*/
public function getUrl()
{
return $this->file->getUrl($this->getFileName());
return $this->file == null ? '' : $this->file->getUrl($this->getFileName());
}
/**