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 66218 - NPE when platform not defined
Summary: NPE when platform not defined
Status: VERIFIED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: rmatous
URL:
Keywords:
Depends on: 65652
Blocks:
  Show dependency tree
 
Reported: 2005-10-07 09:40 UTC by Jaroslav Tulach
Modified: 2005-11-21 14:49 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
The suite project that I encountered the failure on (76.28 KB, application/x-compressed)
2005-10-07 09:40 UTC, Jaroslav Tulach
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Tulach 2005-10-07 09:40:08 UTC
java.lang.NullPointerException 
	at 
org.netbeans.modules.apisupport.project.suite.BrandingSupport.init(BrandingSupport.java:335) 
	at 
org.netbeans.modules.apisupport.project.suite.BrandingSupport.getInstance(BrandingSupport.java:60) 
	at 
org.netbeans.modules.apisupport.project.ui.customizer.BasicBrandingModel.getBranding(BasicBrandingModel.java:230) 
	at 
org.netbeans.modules.apisupport.project.ui.customizer.BasicBrandingModel.initBundleKeys(BasicBrandingModel.java:289) 
	at 
org.netbeans.modules.apisupport.project.ui.customizer.BasicBrandingModel.init(BasicBrandingModel.java:240) 
	at 
org.netbeans.modules.apisupport.project.ui.customizer.BasicBrandingModel.<init>(BasicBrandingModel.java:96) 
	at 
org.netbeans.modules.apisupport.project.ui.customizer.SuiteProperties.<init>(SuiteProperties.java:75) 
	at 
org.netbeans.modules.apisupport.project.ui.customizer.SuiteCustomizer.prepareData(SuiteCustomizer.java:62) 
	at 
org.netbeans.modules.apisupport.project.ui.customizer.BasicCustomizer.showCustomizer(BasicCustomizer.java:98) 
	at 
org.netbeans.modules.apisupport.project.ui.customizer.BasicCustomizer.showCustomizer(BasicCustomizer.java:90) 
	at 
org.netbeans.modules.apisupport.project.ui.customizer.BasicCustomizer.showCustomizer(BasicCustomizer.java:85) 
	at 
org.netbeans.modules.project.ui.actions.CustomizeProject.actionPerformed(CustomizeProject.java:70) 
	at 
org.netbeans.modules.project.ui.actions.LookupSensitiveAction.actionPerformed(LookupSensitiveAction.java:100) 
	at 
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786) 
	at 
javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839) 
	at 
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420) 
	at 
javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258) 
	at javax.swing.AbstractButton.doClick(AbstractButton.java:289) 
	at 
javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1113) 
	at 
javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMenuItemUI.java:943) 
	at 
java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231) 
	at java.awt.Component.processMouseEvent(Component.java:5100) 
	at java.awt.Component.processEvent(Component.java:4897) 
	at java.awt.Container.processEvent(Container.java:1569) 
	at java.awt.Component.dispatchEventImpl(Component.java:3615) 
	at java.awt.Container.dispatchEventImpl(Container.java:1627) 
	at java.awt.Component.dispatchEvent(Component.java:3477) 
	at 
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483) 
	at 
java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198) 
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128) 
	at java.awt.Container.dispatchEventImpl(Container.java:1613) 
	at java.awt.Window.dispatchEventImpl(Window.java:1606) 
	at java.awt.Component.dispatchEvent(Component.java:3477) 
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:456) 
	at 
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201) 
	at 
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151) 
	at 
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145) 
	at 
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137) 
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
Comment 1 Jaroslav Tulach 2005-10-07 09:40:58 UTC
Created attachment 25644 [details]
The suite project that I encountered the failure on
Comment 2 Jaroslav Tulach 2005-10-07 09:42:13 UTC
I just tried to open properties for the project. 
Comment 3 rmatous 2005-10-07 16:52:01 UTC
Similar to #64543 + the same fix that workarounds fact that
SuiteProject.getActivePlatform may return null which I'm not sure that is right
(?) => Martin, Jesse please evaluate

Fix could handle null this way:
platform = (platform == null) ? NbPlatform.getDefaultPlatform() : platform;
Comment 4 Jesse Glick 2005-10-07 21:57:00 UTC
Please wait for issue #65652 and reevaluate (if it can be reproduced somehow).
Comment 5 rmatous 2005-10-10 13:22:07 UTC
This issue depends on #65652 which is P3. I think both should have the same
priority => P2 -> P3
Comment 6 Jaroslav Tulach 2005-10-11 07:55:32 UTC
Unusable project is not P3. I'll make both issues P2 per rmatous request. 
Comment 7 rmatous 2005-10-17 17:57:25 UTC
/cvs/apisupport/project/src/org/netbeans/modules/apisupport/project/ui/customizer/BasicBrandingModel.java,v
 new revision: 1.12; previous revision: 1.11

/cvs/apisupport/project/src/org/netbeans/modules/apisupport/project/ui/customizer/SuiteProperties.java,v
 new revision: 1.16; previous revision: 1.15

/cvs/apisupport/project/test/unit/src/org/netbeans/modules/apisupport/project/suite/BrandingSupportTest.java,v
 new revision: 1.10; previous revision: 1.9

/cvs/apisupport/project/test/unit/src/org/netbeans/modules/apisupport/project/ui/customizer/SuitePropertiesTest.java,v
 new revision: 1.16; previous revision: 1.15
Comment 8 pzajac 2005-11-21 14:49:24 UTC
verified (cannot reproduce)