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 210321

Summary: NPE: NbInstaller.java:158
Product: platform Reporter: javydreamercsw <javydreamercsw>
Component: Module SystemAssignee: Jaroslav Tulach <jtulach>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: P1    
Version: 7.2   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: Log

Description javydreamercsw 2012-03-28 20:31:04 UTC
[ BUILD # : 201203280401 ]
[ JDK VERSION : 1.7.3 ]

I'm having the IDE crashing. Looking at the logs this is the cause:

WARNING [org.netbeans.core.startup.InstalledFileLocatorImpl]: no code name base
passed when looking up var/license_accepted at
org.netbeans.core.startup.Main$1LicenseHandler.shouldDisplayLicense(Main.java:46
0)
java.lang.NullPointerException
	at org.netbeans.core.startup.NbInstaller.prepare(NbInstaller.java:158)
	at org.netbeans.ModuleManager.enable(ModuleManager.java:1069)
	at org.netbeans.ModuleManager.enable(ModuleManager.java:985)
	at org.netbeans.core.startup.ModuleList.installNew(ModuleList.java:340)
	at org.netbeans.core.startup.ModuleList.trigger(ModuleList.java:276)
	at org.netbeans.core.startup.ModuleSystem.restore(ModuleSystem.java:295)
	at org.netbeans.core.startup.Main.getModuleSystem(Main.java:169)
	at org.netbeans.core.startup.Main.start(Main.java:305)
	at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:123)
	at java.lang.Thread.run(Thread.java:722)

The file is present on the user's folder.
Comment 1 javydreamercsw 2012-03-28 20:32:05 UTC
Created attachment 117437 [details]
Log
Comment 2 javydreamercsw 2012-03-28 20:35:31 UTC
The license file is empty but there. Had to delete the var folder to make it work again. I'll try to attach the var folder contents.
Comment 3 Jaroslav Tulach 2012-04-04 14:12:51 UTC
Does it still happen? I'd welcome newer stacktrace. There were few changes in the code recently and I am not able to identify where exactly line 158 is.
Comment 4 javydreamercsw 2012-04-04 14:41:16 UTC
Seems to be fixed since build 201204030400