mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-11 05:12:43 +00:00
bug4941 added missing check for events without logo
This commit is contained in:
1 parent
763a19f46b
commit
042ef7746f
1 file changed
+1
-1
+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);
|
||||
|
||||
Reference in new issue
Block a user