[jira] [Created] (PIVOT-1001) java.lang.IllegalArgumentException: Zero length iterator passed to TextLayout constructor.

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[jira] [Created] (PIVOT-1001) java.lang.IllegalArgumentException: Zero length iterator passed to TextLayout constructor.

JIRA jira@apache.org
Roger Whitcomb created PIVOT-1001:
-------------------------------------

             Summary: java.lang.IllegalArgumentException: Zero length iterator passed to TextLayout constructor.
                 Key: PIVOT-1001
                 URL: https://issues.apache.org/jira/browse/PIVOT-1001
             Project: Pivot
          Issue Type: Bug
          Components: wtk-terra
    Affects Versions: 2.1
         Environment: All
            Reporter: Roger Whitcomb
            Assignee: Roger Whitcomb
            Priority: Minor
             Fix For: 2.1


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)



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
Loading...