JDK-4240373 : Null Pointer exception in JComponent paint method
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.2.1
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 1999-05-21
  • Updated: 1999-07-09
  • Resolved: 1999-07-09
Related Reports
Duplicate :  
Description

Name: vi73552			Date: 05/21/99


I get a NullPointer Exception when opening a new frame on
certain occasions. here are the first two lines of the exception
java.lang.NullPointerException
	at javax.swing.JComponent.paint(JComponent.java:472)
	at java.awt.Component.paintAll(Component.java:1841)
	at vista.app.SessionTable.updateView(SessionTable.java:111)

The problem is with these lines in JComponent.java
	  
	    Rectangle clipRect = co.getClipBounds();
            int clipX = clipRect.x;
	The clipRect could be null in which case it should be 
checked for and appropraiate action should be taken.
--Nicky
(Review ID: 83367) 
======================================================================

Comments
EVALUATION This is a dup of 4191142, refer to it for more info. scott.violet@eng 1999-07-09
09-07-1999

PUBLIC COMMENTS This is a dup of 4191142, refer to it for more info. scott.violet@eng 1999-07-09
09-07-1999