-
Bug
-
Resolution: Won't Fix
-
P4
-
5.0
-
None
-
generic
-
generic
Name: agR10216 Date: 02/28/2004
Running demo/jfc/Java2D/Java2Demo.jar with the tiger build 36,
I occasionally got the following exception:
java.lang.NullPointerException
at java2d.PerformanceMonitor$Surface.run(PerformanceMonitor.java:153)
at java.lang.Thread.run(Thread.java:566)
Here are the pertinent lines from java2d.PerformanceMonitor$Surface.run():
bimg = (BufferedImage) createImage(d.width, d.height);
Graphics2D big = bimg.createGraphics();
The second line may throw NPE since createImage() may return null as it's
specified in the javadoc for Component.createImage(int width, int height).
The demo should be revised to work correctly in this case.
###@###.### 2004-02-28
======================================================================
Running demo/jfc/Java2D/Java2Demo.jar with the tiger build 36,
I occasionally got the following exception:
java.lang.NullPointerException
at java2d.PerformanceMonitor$Surface.run(PerformanceMonitor.java:153)
at java.lang.Thread.run(Thread.java:566)
Here are the pertinent lines from java2d.PerformanceMonitor$Surface.run():
bimg = (BufferedImage) createImage(d.width, d.height);
Graphics2D big = bimg.createGraphics();
The second line may throw NPE since createImage() may return null as it's
specified in the javadoc for Component.createImage(int width, int height).
The demo should be revised to work correctly in this case.
###@###.### 2004-02-28
======================================================================
- relates to
-
JDK-5062222 NPE in XYZApp.newBackBuffer
-
- Resolved
-