Код: Выделить всё
Exception in thread "" java.lang.NullPointerException: Cannot invoke "com.vaadin.flow.component.UI.getUIId()" because the return value of "com.vaadin.flow.component.UI.getCurrent()" is null
at com.vaadin.flow.server.communication.StreamRequestHandler.generateURI(StreamRequestHandler.java:247)
at com.vaadin.flow.server.StreamResourceRegistry.getURI(StreamResourceRegistry.java:226)
at com.vaadin.flow.server.StreamResourceRegistry.getURI(StreamResourceRegistry.java:209)
at com.vaadin.flow.internal.nodefeature.ElementAttributeMap.doSetResource(ElementAttributeMap.java:160)
at com.vaadin.flow.internal.nodefeature.ElementAttributeMap.setResource(ElementAttributeMap.java:144)
at com.vaadin.flow.dom.impl.BasicElementStateProvider.setAttribute(BasicElementStateProvider.java:332)
at com.vaadin.flow.dom.Element.setAttribute(Element.java:346)
at com.vaadin.flow.dom.Element.setAttribute(Element.java:380)
at com.vaadin.flow.component.html.Image.setSrc(Image.java:168)
at com.vaadin.flow.component.html.Image.(Image.java:115)
Подробнее здесь: https://stackoverflow.com/questions/797 ... ck-of-code