JDK-4181936 : NullPointerException in ParagraphView.getLaoutViewCount while running in browser
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.2.0
  • Priority: P1
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 1998-10-16
  • Updated: 1999-02-08
  • Resolved: 1999-02-08
Related Reports
Duplicate :  
Relates :  
Description
ParagraphView.getLayoutViewCount generates a null pointer exception when running in a browser. I suspect the problem is related to bug #4181905  and/or 4181934 and will probably go away when those problems are fixed. However, while the above problems may not prevent an HTML document from being displayed, this bug does. The offending line is below.

    protected int getLayoutViewCount() {
97--->	return layoutPool.size();
    }

As with 4181934 we can provide a test for the fix.

Comments
EVALUATION Throwing an exception in the view hierarchy update causes it to become corrupted, so this problem is believed to be caused by the other problems suggested. We will verify it works properly when the other problems are fixed. timothy.prinzing@eng 1998-10-17
17-10-1998