Copy screen in Studio

Hi
In the new Studio I am trying to copy a Product.browse xml screen (in GENERIC UI) and get the following error:

Total time: 25.649 secs
[15:30:28.580] Fill in the required fields
[15:30:44.038] Exception has been thrown by com.haulmont.studio.ui.app.a@5e67a230:
[15:30:44.038] java.lang.NullPointerException

 at com.haulmont.studio.ui.sd.layout.ScreenLayoutDesigner.isLayoutAnalysisDisabled(SourceFile:453)

 at com.haulmont.studio.ui.sd.n.b(SourceFile:237)

 at com.haulmont.studio.ui.i.buttonClick(SourceFile:207)

 at sun.reflect.GeneratedMethodAccessor249.invoke(Unknown Source)

 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

 at java.lang.reflect.Method.invoke(Method.java:497)

 at com.vaadin.event.ListenerMethod.receiveEvent(ListenerMethod.java:510)

 at com.vaadin.event.EventRouter.fireEvent(EventRouter.java:200)

 at com.vaadin.event.EventRouter.fireEvent(EventRouter.java:163)

 at com.vaadin.server.AbstractClientConnector.fireEvent(AbstractClientConnector.java:1037)

 at com.vaadin.ui.Button.fireClick(Button.java:377)

 at com.vaadin.ui.Button$1.click(Button.java:54)

 at sun.reflect.GeneratedMethodAccessor248.invoke(Unknown Source)

 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

 at java.lang.reflect.Method.invoke(Method.java:497)

 at com.vaadin.server.ServerRpcManager.applyInvocation(ServerRpcManager.java:158)

 at com.vaadin.server.ServerRpcManager.applyInvocation(ServerRpcManager.java:119)

 at com.vaadin.server.communication.ServerRpcHandler.handleInvocation(ServerRpcHandler.java:444)

 at com.vaadin.server.communication.ServerRpcHandler.handleInvocations(ServerRpcHandler.java:409)

 ...
[15:30:44.042] Unexpected error
java.lang.NullPointerException
[15:31:13.560] Exception has been thrown by com.haulmont.studio.ui.app.a@5e67a230:
[15:31:13.560] java.lang.NullPointerException

     at com.haulmont.studio.ui.sd.layout.ScreenLayoutDesigner.isLayoutAnalysisDisabled(SourceFile:453)

     at com.haulmont.studio.ui.sd.n.b(SourceFile:237)

     at com.haulmont.studio.ui.j.buttonClick(SourceFile:236)

     at sun.reflect.GeneratedMethodAccessor249.invoke(Unknown Source)

     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

     at java.lang.reflect.Method.invoke(Method.java:497)

     at com.vaadin.event.ListenerMethod.receiveEvent(ListenerMethod.java:510)

     at com.vaadin.event.EventRouter.fireEvent(EventRouter.java:200)

     at com.vaadin.event.EventRouter.fireEvent(EventRouter.java:163)

     at com.vaadin.server.AbstractClientConnector.fireEvent(AbstractClientConnector.java:1037)

     at com.vaadin.ui.Button.fireClick(Button.java:377)

     at com.vaadin.ui.Button$1.click(Button.java:54)

     at sun.reflect.GeneratedMethodAccessor248.invoke(Unknown Source)

     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

     at java.lang.reflect.Method.invoke(Method.java:497)

     at com.vaadin.server.ServerRpcManager.applyInvocation(ServerRpcManager.java:158)

     at com.vaadin.server.ServerRpcManager.applyInvocation(ServerRpcManager.java:119)

     at com.vaadin.server.communication.ServerRpcHandler.handleInvocation(ServerRpcHandler.java:444)

     at com.vaadin.server.communication.ServerRpcHandler.handleInvocations(ServerRpcHandler.java:409)

     ...
    [15:31:13.565] Unexpected error
    java.lang.NullPointerException
    [15:31:51.717] Exception has been thrown by com.haulmont.studio.ui.app.a@5e67a230:
    [15:31:51.717] java.lang.NullPointerException

     at com.haulmont.studio.ui.sd.layout.ScreenLayoutDesigner.isLayoutAnalysisDisabled(SourceFile:453)

     at com.haulmont.studio.ui.sd.n.b(SourceFile:237)

     at com.haulmont.studio.ui.i.buttonClick(SourceFile:207)

     at sun.reflect.GeneratedMethodAccessor249.invoke(Unknown Source)

     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

     at java.lang.reflect.Method.invoke(Method.java:497)

     at com.vaadin.event.ListenerMethod.receiveEvent(ListenerMethod.java:510)

     at com.vaadin.event.EventRouter.fireEvent(EventRouter.java:200)

     at com.vaadin.event.EventRouter.fireEvent(EventRouter.java:163)

     at com.vaadin.server.AbstractClientConnector.fireEvent(AbstractClientConnector.java:1037)

     at com.vaadin.ui.Button.fireClick(Button.java:377)

     at com.vaadin.ui.Button$1.click(Button.java:54)

     at sun.reflect.GeneratedMethodAccessor248.invoke(Unknown Source)

     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

     at java.lang.reflect.Method.invoke(Method.java:497)

     at com.vaadin.server.ServerRpcManager.applyInvocation(ServerRpcManager.java:158)

     at com.vaadin.server.ServerRpcManager.applyInvocation(ServerRpcManager.java:119)

     at com.vaadin.server.communication.ServerRpcHandler.handleInvocation(ServerRpcHandler.java:444)

     at com.vaadin.server.communication.ServerRpcHandler.handleInvocations(ServerRpcHandler.java:409)

     ...
    [15:31:51.722] Unexpected error
    java.lang.NullPointerException

what to do?
Thank you

Hi!

Thanks for reporting the problem, threre is a YouTrack issue

As a workaround, to avoid such error, you need to switch to LAYOUT tab in Screen designer after the copy screen was created. And only then save the new screen.