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 123866

Summary: Main wizard property container is not defined (null)
Product: installer Reporter: dlipin <dlipin>
Component: NBIAssignee: Libor Fischmeistr <lfischmeistr>
Status: NEW ---    
Severity: blocker    
Priority: P4    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: proposed patch
SystemPropertiesContainer.java

Description dlipin 2007-12-12 09:23:10 UTC
This fact arise in Jeff Lin`s work on OpenESB installer: invokation of panel.getWizard().setProperty() result in NPE.
panel here is one of the top-level panels either in nbi or in installer - those which do not belong to any specific 
product but to the main installer flow (Welcome, PostInstall, PreInstall,License,etc).

By design an instance of global Registry should be that property container: it is already defined as PC but now it is 
not set as the property container for the Wizard.
One possible solution is to create one more Wizard constructor where we can pass the PropertyContainer but it is not 
clear how to use it in (how to pass registry to) Wizard.getInstance() that is called in the Installer constructor.
Comment 1 dlipin 2009-04-15 10:05:40 UTC
Created attachment 80120 [details]
proposed patch
Comment 2 dlipin 2009-04-24 16:32:20 UTC
Another option is to use SystemPropertiesContainer as such properties container.
Comment 3 dlipin 2009-04-24 16:32:51 UTC
Created attachment 80869 [details]
SystemPropertiesContainer.java
Comment 4 Jiri Rechtacek 2012-10-07 12:58:29 UTC
Assigned to new owner.