Ruben Laguna’s blog

NullPointerException When Using hideEmptyDocArea

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

1
2
3
4
5
6
7
8
9
10
<span class='line'>...
</span><span class='line'>...
</span><span class='line'>&lt;folder name="Windows2">
</span><span class='line'>   &lt;folder name="Modes">
</span><span class='line'>           &lt;folder name="editor_hidden"/>
</span><span class='line'>            &lt;file name="editor.wsmode_hidden"/> 
</span><span class='line'>    &lt;/folder>
</span><span class='line'>&lt;/folder>
</span><span class='line'>...
</span><span class='line'>...</span>

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

Comments

Copyright © 2015 - Ruben Laguna - Powered by Octopress