Null Pointer exception in JComponent paint method

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P4
    • None
    • Affects Version/s: 1.2.1
    • Component/s: client-libs



      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)
      ======================================================================

            Assignee:
            Scott Violet (Inactive)
            Reporter:
            Vassili Igouchkine (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: