Uploaded image for project: 'Pivot'
  1. Pivot
  2. PIVOT-1001

java.lang.IllegalArgumentException: Zero length iterator passed to TextLayout constructor.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1
    • Fix Version/s: 2.1
    • Component/s: wtk-terra
    • Labels:
      None
    • Environment:
      All

      Description

      When the prompt string is empty (not null) and the text is empty, you get this error during paint:
      java.lang.IllegalArgumentException: Zero length iterator passed to TextLayout constructor.
      Exception thrown during paint(): java.lang.IllegalArgumentException: Zero length iterator passed to TextLayout constructor.
      Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: Zero length iterator passed to TextLayout constructor.
      at java.awt.font.TextLayout.<init>(Unknown Source)
      at org.apache.pivot.wtk.skin.terra.TerraTextInputSkin.paint(TerraTextInputSkin.java:535)
      at org.apache.pivot.wtk.Component.paint(Component.java:1965)
      at org.apache.pivot.wtk.Container.paint0(Container.java:446)
      at org.apache.pivot.wtk.Container.paint(Container.java:359)
      at org.apache.pivot.wtk.Container.paint0(Container.java:446)
      at org.apache.pivot.wtk.Container.paint(Container.java:359)
      at org.apache.pivot.wtk.Container.paint0(Container.java:446)
      at org.apache.pivot.wtk.Container.paint(Container.java:359)
      at org.apache.pivot.wtk.Container.paint0(Container.java:446)
      at org.apache.pivot.wtk.Container.paint(Container.java:359)
      at org.apache.pivot.wtk.Container.paint0(Container.java:446)
      at org.apache.pivot.wtk.Container.paint(Container.java:359)
      at org.apache.pivot.wtk.Container.paint0(Container.java:446)
      at org.apache.pivot.wtk.Container.paint(Container.java:359)
      at org.apache.pivot.wtk.Container.paint0(Container.java:446)
      at org.apache.pivot.wtk.Container.paint(Container.java:359)
      at org.apache.pivot.wtk.ApplicationContext$DisplayHost.paintDisplay(ApplicationContext.java:798)
      at org.apache.pivot.wtk.ApplicationContext$DisplayHost.paintVolatileBuffered(ApplicationContext.java:758)
      at org.apache.pivot.wtk.ApplicationContext$DisplayHost.paint(ApplicationContext.java:635)
      at java.awt.GraphicsCallback$PaintCallback.run(Unknown Source)

        Attachments

          Activity

            People

            • Assignee:
              rwhitcomb Roger Whitcomb
              Reporter:
              rwhitcomb Roger Whitcomb
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: