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

TextArea: IllegalArgumentException while binding text to property with null value

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P4
    • fx2.0.2
    • fx2.0
    • javafx
    • 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

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

              Dates

                Created:
                Updated:
                Resolved:
                Imported: