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 147040 - Report about NPE in Preview Output Window during closing of Preview
Summary: Report about NPE in Preview Output Window during closing of Preview
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: Oleg Barbashov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-12 09:56 UTC by Alexandr Scherbatiy
Modified: 2008-09-23 10:11 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandr Scherbatiy 2008-09-12 09:56:34 UTC
Steps to reproduce:

- Create a JavaFX Script file
----------------------------------------------
import javafx.scene.*;
import javafx.scene.paint.*;
import javafx.application.*;

Frame {
    title: "MyApplication"
    width: 200
    height: 200
    closeAction: function() {
        java.lang.System.exit( 0 );
    }
    visible: true

    scene: Scene {
        fill: Color.BLACK
        content: []
    }
}
----------------------------------------------

- Enable Preview
- Close the Design Preview window

  There is an NPE in output window:

Exception in thread "AWT-EventQueue-1" java.lang.NullPointerException
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:591)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:284)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Comment 1 Oleg Barbashov 2008-09-12 19:08:05 UTC
Can not reproduce on the current runtime.
Comment 2 Oleg Barbashov 2008-09-12 19:40:04 UTC
Now the exception reporting is stopped before disposing AppContext connected with the instance of Preview. Alexandr,
please, look again after we get stable runtime.
Comment 3 Oleg Barbashov 2008-09-16 18:53:32 UTC
Fixed.
Comment 4 Alexandr Scherbatiy 2008-09-23 10:11:40 UTC
the issue is not reproduced in 2008-09-23_02-01-58.zip