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 8110 - NPE while creating Application from template
Summary: NPE while creating Application from template
Status: CLOSED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P4 normal (vote)
Assignee: Tomas Pavek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-10-31 18:51 UTC by Scott Stark
Modified: 2003-06-30 18:27 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
system/ide.log (6.25 KB, text/plain)
2001-07-20 20:40 UTC, Scott Stark
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Scott Stark 2000-10-31 18:51:24 UTC
For build59, choosing New->Sample Forms->Application from the Explorer
resulted in the following in an exception dialog with the following details.
The application form was created.

Tue Oct 31 10:57:54 PST 2000java.lang.NullPointerException: null
java.lang.NullPointerException

        at org.netbeans.modules.form.FormTopComponent.componentActivated
(FormTopComponent.java:116)

        at org.openide.windows.WindowManager.activateComponent
(WindowManager.java:153)

        at org.netbeans.core.windows.WindowManagerImpl.activateComponent
(WindowManagerImpl.java:548)

        at org.netbeans.core.windows.MultiTabContainer.doActivateComponent
(MultiTabContainer.java:677)

        at org.netbeans.core.windows.MultiTabContainer.windowActivated
(MultiTabContainer.java:788)

        at java.awt.AWTEventMulticaster.windowActivated
(AWTEventMulticaster.java:330)

        at java.awt.Window.processWindowEvent(Window.java:810)

        at javax.swing.JFrame.processWindowEvent(JFrame.java:241)

        at java.awt.Window.processEvent(Window.java:774)

        at java.awt.Component.dispatchEventImpl(Component.java:2595)

[catch]        at java.awt.Container.dispatchEventImpl(Container.java:1213)

        at java.awt.Window.dispatchEventImpl(Window.java:912)

        at java.awt.Component.dispatchEvent(Component.java:2499)

        at java.awt.EventQueue.dispatchEvent(EventQueue.java:319)

        at java.awt.EventDispatchThread.pumpOneEvent
(EventDispatchThread.java:103)

        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)

        at java.awt.EventDispatchThread.run(EventDispatchThread.java:84)
Comment 1 Scott Stark 2000-10-31 18:51:59 UTC
Created attachment 229 [details]
system/ide.log
Comment 2 Tomas Pavek 2000-11-01 09:52:59 UTC
Although I could not reproduce the exception, I've changed the code in
FormTopComponent to check formManager is not null - this should fix the problem.
Comment 3 Marian Mirilovic 2000-11-29 15:20:59 UTC
verified in [main trunk](001123) and [main trunk](nb 78), and boston(1160)
Comment 4 Quality Engineering 2003-06-30 18:27:52 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.