Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8301989

new javax.swing.text.DefaultCaret().setBlinkRate(N) results in NPE

    XMLWordPrintable

Details

    Backports

      Description

        Execution of the following code:

                new DefaultCaret().setBlinkRate(100);

        leads to

        Exception in thread "main" java.lang.NullPointerException: Cannot invoke "javax.swing.text.JTextComponent.isEditable()" because "this.component" is null
        at java.desktop/javax.swing.text.DefaultCaret.setBlinkRate(DefaultCaret.java:1053)

        Attachments

          Issue Links

            Activity

              People

                kizune Alexander Zuev
                dbessono Dmitry Bessonov
                Votes:
                0 Vote for this issue
                Watchers:
                10 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: