appreciated / demo-helper-view

Component collection to create visually appealing Vaadin addon demos
Apache License 2.0
1 stars 0 forks source link

Regression: Version 2.0.7 throws UnsupportedOperationException with a single Textcomponent inside DeviceView. #9

Closed watho closed 5 years ago

watho commented 5 years ago

Works with Version 2.0.5

Testview:

public class MainView extends DemoHelperView {

  public MainView() {
    withDevice(new LaptopView(new Text("test")));
  }

Stacktrace:

Caused by: java.lang.UnsupportedOperationException: This instance is immutable
    at com.vaadin.flow.dom.impl.ImmutableEmptyStyle.set(ImmutableEmptyStyle.java:39) ~[flow-server-1.2.4.jar:1.2.4]
    at com.github.appreciated.demo.helper.view.devices.Device.<init>(Device.java:17) ~[demo-helper-view-2.0.7.jar:2.0.7]
    at com.github.appreciated.demo.helper.view.devices.LaptopView.<init>(LaptopView.java:8) ~[demo-helper-view-2.0.7.jar:2.0.7]
    at de.wathoserver.vaadin.MainView.<init>(MainView.java:15) ~[classes/:na]
appreciated commented 5 years ago

Thanks for reporting!