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

TextArea.append(s), TextArea.replaceRange(s,pos1,pos2) don't work if s=nul

XMLWordPrintable

    • generic, x86
    • solaris_2.5.1, windows_nt

      File in X Attachments ta.java shows the bug.
      Actually, TextAreaPeer fails:

      volga% /opt/home/jdk1.1.3/bin/javac ta.java
      volga% /opt/home/jdk1.1.3/bin/java ta
      Test: TextArea.setText(null)
      Test passed
      Test: TextArea.append(null)
      Test passed
      Test: TextAreaPeer.insertText(null,...)
      java.lang.NullPointerException
      at sun.awt.motif.MTextAreaPeer.insertText(MTextAreaPeer.java:338)
      at java.awt.TextArea.insertText(TextArea.java:159)
      at java.awt.TextArea.appendText(TextArea.java:180)
      at java.awt.TextArea.append(TextArea.java:171)
      at ta.<init>(ta.java:25)
      at ta.main(ta.java:45)
      ^Cvolga%

      nikolay.molchanov@Eng 1997-08-11

            ehawkessunw Eric Hawkes (Inactive)
            nmolchan Nikolay Molchanov
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: