-
Bug
-
Resolution: Fixed
-
P3
-
1.4.0
-
beta2
-
generic
-
generic
-
Verified
Null Pointer Exception occurs on opening 'Options.txt' file.
This occurs on all the platforms.
Steps to Reproduce:
1) Launch Font2DTest demo.
2) From 'Text to use:' list select 'Text File'.
3) Select to Open the 'Readme.txt' file from the File/Folder list in the 'Load...' dialog.
4) Now select File -> Save Selected Options...
5) In the Save dialog which opens, click the 'Save' button to save the file. By default the name of the saved file would be 'options.txt'.
6) Select File -> Load Options...
7) In the Load... dialog select to open the 'options.txt' file which you just saved.
Loading the 'options.txt' file throws NPE on the console.
% java -version
java version "1.4.0-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta-b62)
Java HotSpot(TM) Client VM (build 1.4.0-beta-b62, mixed mode)
The following Exception is thrown:
java.lang.NullPointerException
at FontPanel$FontCanvas.calcFontMetrics(FontPanel.java:680)
at FontPanel$FontCanvas.drawText(FontPanel.java:761)
at FontPanel$FontCanvas.paint(FontPanel.java:832)
at FontPanel$FontCanvas.update(FontPanel.java:850)
at sun.awt.RepaintArea.paintRect(RepaintArea.java:349)
at sun.awt.RepaintArea.paint(RepaintArea.java:339)
at sun.awt.windows.WComponentPeer.handleEvent(WComponentPeer.java:254)
at java.awt.Component.dispatchEventImpl(Component.java:3549)
at java.awt.Component.dispatchEvent(Component.java:3343)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:439)
at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:15
0)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:131)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
ruchika.mehdiratta@Eng 2001-04-27
This occurs on all the platforms.
Steps to Reproduce:
1) Launch Font2DTest demo.
2) From 'Text to use:' list select 'Text File'.
3) Select to Open the 'Readme.txt' file from the File/Folder list in the 'Load...' dialog.
4) Now select File -> Save Selected Options...
5) In the Save dialog which opens, click the 'Save' button to save the file. By default the name of the saved file would be 'options.txt'.
6) Select File -> Load Options...
7) In the Load... dialog select to open the 'options.txt' file which you just saved.
Loading the 'options.txt' file throws NPE on the console.
% java -version
java version "1.4.0-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta-b62)
Java HotSpot(TM) Client VM (build 1.4.0-beta-b62, mixed mode)
The following Exception is thrown:
java.lang.NullPointerException
at FontPanel$FontCanvas.calcFontMetrics(FontPanel.java:680)
at FontPanel$FontCanvas.drawText(FontPanel.java:761)
at FontPanel$FontCanvas.paint(FontPanel.java:832)
at FontPanel$FontCanvas.update(FontPanel.java:850)
at sun.awt.RepaintArea.paintRect(RepaintArea.java:349)
at sun.awt.RepaintArea.paint(RepaintArea.java:339)
at sun.awt.windows.WComponentPeer.handleEvent(WComponentPeer.java:254)
at java.awt.Component.dispatchEventImpl(Component.java:3549)
at java.awt.Component.dispatchEvent(Component.java:3343)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:439)
at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:15
0)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:131)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
ruchika.mehdiratta@Eng 2001-04-27