Ruben's blog

Nothing to say

NullPointerException When Using hideEmptyDocArea

| Comments

When I put

run.args.extra=-J-Dnetbeans.winsys.hideEmptyDocArea=true

in my project.properties I got a NullPointerException (NPE) at startup. I though it was a bug and I reported it but then I realized that I got the NPE because I had removed/hidden also the editor.wsmode in my layer.xml

1
2
3
4
5
6
7
8
9
10
...
...
<folder name="Windows2">
   <folder name="Modes">
           <folder name="editor_hidden"/>
            <file name="editor.wsmode_hidden"/> 
    </folder>
</folder>
...
...

As soon as I removed those entries from the layer.xml hideEmptyDocAre worked perfectly.

Comments