Desing Nifty GUI Xml does'nt work

Hi.
I’m beginning in Nifty, so when i try to preview the code, i got a NullPointerException, here is the log:

[java]java.lang.NullPointerException
at jada.ngeditor.controller.GUIEditor.saveGui(GUIEditor.java:178)
at com.jme3.gde.gui.NiftyGuiVisualElement.componentHidden(NiftyGuiVisualElement.java:271)
at org.netbeans.core.multiview.MultiViewPeer.hideElement(MultiViewPeer.java:340)
at org.netbeans.core.multiview.MultiViewPeer$SelectionListener.selectionChanged(MultiViewPeer.java:749)
at org.netbeans.core.multiview.MultiViewModel.fireSelectionChanged(MultiViewModel.java:246)
at org.netbeans.core.multiview.MultiViewModel.setActiveDescription(MultiViewModel.java:118)
at org.netbeans.core.multiview.MultiViewModel$BtnGroup.setSelected(MultiViewModel.java:296)
at javax.swing.JToggleButton$ToggleButtonModel.setSelected(JToggleButton.java:254)
at javax.swing.ButtonGroup.setSelected(ButtonGroup.java:164)
at org.netbeans.core.multiview.MultiViewModel$BtnGroup.setSelected(MultiViewModel.java:292)
at org.netbeans.core.multiview.TabsComponent$ButtonMouseListener.mousePressed(TabsComponent.java:424)
at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:280)
at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:279)
at java.awt.Component.processMouseEvent(Component.java:6502)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3320)
at java.awt.Component.processEvent(Component.java:6270)
at java.awt.Container.processEvent(Container.java:2229)
at java.awt.Component.dispatchEventImpl(Component.java:4861)
at java.awt.Container.dispatchEventImpl(Container.java:2287)
at java.awt.Component.dispatchEvent(Component.java:4687)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4489)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
at java.awt.Container.dispatchEventImpl(Container.java:2273)
at java.awt.Window.dispatchEventImpl(Window.java:2719)
at java.awt.Component.dispatchEvent(Component.java:4687)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:735)
at java.awt.EventQueue.access$200(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:694)
at java.awt.EventQueue$3.run(EventQueue.java:692)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
at java.awt.EventQueue$4.run(EventQueue.java:708)
at java.awt.EventQueue$4.run(EventQueue.java:706)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:705)
at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:159)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
[/java]

And this is what appears:

And my XML code:

[java]<?xml version=“1.0” encoding=“UTF-8”?>
<nifty xmlns=“http://nifty-gui.lessvoid.com/nifty-gui” xmlns:xsi=“XML Schema” xsi:schemaLocation=“https://raw.githubusercontent.com/void256/nifty-gui/1.4/nifty-core/src/main/resources/nifty.xsd”>
<!-- +++++++++++++++++++++++++++++++++++++++ -->
<!-- start screen -->
<!-- +++++++++++++++++++++++++++++++++++++++ -->
<screen id=“home” controller=“mygame.Main”>
<layer id=“background” backgroundColor="#000F" childLayout=“absolute”>
</layer>
<layer id=“foreground” childLayout=“vertical” align=“center”>
<panel id=“top” width=“75%” height=“25%”>

        &lt;/panel&gt;
        &lt;panel id="mid" width="75%" height="50%"&gt;
            
        &lt;/panel&gt;
        &lt;panel id="botton" childLayout="horizontal" width="75%" height="25%"&gt;
            &lt;panel id="botton-left"&gt;
            &lt;/panel&gt;
            &lt;panel id="botton-right"&gt;
            &lt;/panel&gt;
        &lt;/panel&gt;
    &lt;/layer&gt;
&lt;/screen&gt;

</nifty>[/java]

Also, when I try to go back into the editor, the screen freezes on the design.

Can someone help me out?
I’m using JME 3.0
Thanks.

Sorry about “Desing”… Design
And the img is here:
Imgur

Is your nifty xml in the assets folder?

Yes, in Interface.

Hello, it seems that your file is corrupted in some ways… I don’t know how sorry :frowning: . Try to create a new file and copy and paste your previous xml content. In the next version will be a better control I apologize for the inconvenience!

Found the problem! In the next version will be solved by now just add this elements in the root of the xml :
[xml]
<useControls filename=“nifty-default-controls.xml”/>
<useStyles filename=“nifty-default-styles.xml”/>
[/xml]

Thank you, it works! =D