This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 252404

Summary: NullPointerException at org.netbeans.spi.project.support.ant.ui.LicenseHeadersPanel.loadGlobalLicenses
Product: projects Reporter: ferrybig
Component: AntAssignee: Tomas Stupka <tstupka>
Status: RESOLVED WONTFIX    
Severity: normal CC: cpuloyal
Priority: P3    
Version: 8.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 216402
Attachments: stacktrace
stacktrace

Description ferrybig 2015-05-14 22:39:11 UTC
Build: NetBeans IDE 8.0.2 (Build 201411181905)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.5-b02, Java(TM) SE Runtime Environment, 1.8.0_05-b13
OS: Windows 7

User Comments:
GUEST: .

ferrybig: My licences where bugged. When I create a new file, it always state that there is a syntax error in the first line because of the text that says licence file not found. So I wanted to fix the problem by oing into my project options, then clicking on licence files, and open the global Licence files. Here I clicked the licences directory at the left and pressed "Revert to default". After this the directory with the licences was gone. Confused I closes al the windows and reopened my project properties, then netbeans started acting up and not changing the screen to the Licence options when I pressed it. Then I was this error Notification.




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.spi.project.support.ant.ui.LicenseHeadersPanel.loadGlobalLicenses(LicenseHeadersPanel.java:355)
   at org.netbeans.spi.project.support.ant.ui.LicenseHeadersPanel.<init>(LicenseHeadersPanel.java:111)
   at org.netbeans.spi.project.support.ant.ui.CustomizerUtilities.createLicenseHeaderCustomizerPanel(CustomizerUtilities.java:67)
   at org.netbeans.modules.java.j2seproject.ui.customizer.J2SECompositePanelProvider.createComponent(J2SECompositePanelProvider.java:200)
   at org.netbeans.spi.project.ui.support.ProjectCustomizer$DelegateCategoryProvider.create(ProjectCustomizer.java:629)
   at org.netbeans.modules.project.uiapi.CustomizerPane.setCategory(CustomizerPane.java:259)
Comment 1 ferrybig 2015-05-14 22:39:13 UTC
Created attachment 153672 [details]
stacktrace
Comment 2 Exceptions Reporter 2015-06-23 02:29:06 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=216402
Comment 3 cpuloyal 2015-07-09 14:47:02 UTC
Created attachment 154543 [details]
stacktrace

Already reported it. The exception still happens after trying to access the "License Headers" property of the project.
Comment 4 Martin Balin 2016-07-07 08:38:07 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss