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

TextArea: IllegalArgumentException while binding text to property with null value

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: fx2.0
    • Fix Version/s: fx2.0.2
    • Component/s: javafx
    • Labels:
    • Environment:

      Win7/JDK6/b44

      Description

      TextArea area = new TextArea("Text");
      area.textProperty().bind(new SimpleStringProperty());

      Exception in thread "main" java.lang.RuntimeException: Exception in Application start method
              at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:378)
              at com.sun.javafx.application.LauncherImpl.access$000(LauncherImpl.java:27)
              at com.sun.javafx.application.LauncherImpl$1.run(LauncherImpl.java:97)
              at java.lang.Thread.run(Thread.java:662)
      Caused by: java.lang.IllegalArgumentException
              at javafx.scene.control.TextArea$TextAreaContent.insert(TextArea.java:98)
              at javafx.scene.control.TextInputControl$TextProperty.doSet(TextInputControl.java:1015)
              at javafx.scene.control.TextInputControl$TextProperty.bind(TextInputControl.java:965)
              at main.Main.start(Main.java:25)
              at com.sun.javafx.application.LauncherImpl$5.run(LauncherImpl.java:298)
              at com.sun.javafx.application.PlatformImpl$4.run(PlatformImpl.java:136)
              at com.sun.javafx.application.PlatformImpl$3.run(PlatformImpl.java:108)
              at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
              at com.sun.glass.ui.win.WinApplication.access$100(WinApplication.java:29)
              at com.sun.glass.ui.win.WinApplication$2$1.run(WinApplication.java:62)
              ... 1 more

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                leifs Leif Samuelsson (Inactive)
                Reporter:
                ogb Oleg Barbashov (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported: