bug4941 added missing check for events without logo

This commit is contained in:
Kai Börnert committed 2019-04-01 16:19:54 +02:00
1 parent 763a19f46b
commit 042ef7746f
1 file changed
+1 -1
@@ -95,7 +95,7 @@ public class QRCodeView extends Composite {
}
}).inject();
if (event != null) {
if (event != null && event.getLogoImage() != null) {
eventImageUi.getStyle().setBackgroundImage("url('" + event.getLogoImage().getSourceRef() + "')");
eventImageUi.getStyle().setWidth(event.getLogoImage().getWidthInPx(), Unit.PX);
eventImageUi.getStyle().setHeight(event.getLogoImage().getHeightInPx(), Unit.PX);