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

NPE when using ReflectionDecorator on Dialog with TextInput inside

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.5.1
    • 1.5.2, 2.0
    • wtk-effects
    • None
    • JDK 1.6.0_20 (64bit)

    Description

      When using the ReflectionDecorator on a Dialog with a TextInput inside, which has the focus, I'm getting infinite NPEs like the following:

      Exception thrown during paint(): java.lang.NullPointerException
      Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
      at org.apache.pivot.wtk.skin.LabelSkin.paint(LabelSkin.java:303)
      at org.apache.pivot.wtk.Component.paint(Component.java:2035)
      at org.apache.pivot.wtk.Container.paint(Container.java:393)
      at org.apache.pivot.wtk.Container.paint(Container.java:393)
      at org.apache.pivot.wtk.Container.paint(Container.java:393)
      at org.apache.pivot.wtk.Container.paint(Container.java:393)
      at org.apache.pivot.wtk.Container.paint(Container.java:393)
      at org.apache.pivot.wtk.ApplicationContext$DisplayHost.paintDisplay(ApplicationContext.java:512)
      at org.apache.pivot.wtk.ApplicationContext$DisplayHost.paintVolatileBuffered(ApplicationContext.java:478)
      at org.apache.pivot.wtk.ApplicationContext$DisplayHost.paint(ApplicationContext.java:383)
      at org.apache.pivot.wtk.Display.repaint(Display.java:75)
      at org.apache.pivot.wtk.Component.repaint(Component.java:2006)
      at org.apache.pivot.wtk.Component.repaint(Component.java:2006)
      at org.apache.pivot.wtk.Component.repaint(Component.java:2006)
      at org.apache.pivot.wtk.Component.repaint(Component.java:2006)
      at org.apache.pivot.wtk.Component.repaint(Component.java:2006)
      at org.apache.pivot.wtk.Component.repaint(Component.java:2006)
      at org.apache.pivot.wtk.skin.terra.TerraTextInputSkin$BlinkCaretCallback.run(TerraTextInputSkin.java:70)
      at org.apache.pivot.wtk.skin.terra.TerraTextInputSkin.showCaret(TerraTextInputSkin.java:1457)
      at org.apache.pivot.wtk.skin.terra.TerraTextInputSkin.layout(TerraTextInputSkin.java:278)
      at org.apache.pivot.wtk.Component.layout(Component.java:1926)
      at org.apache.pivot.wtk.Component.validate(Component.java:1917)
      at org.apache.pivot.wtk.Container.layout(Container.java:327)
      at org.apache.pivot.wtk.Component.validate(Component.java:1917)
      at org.apache.pivot.wtk.Container.layout(Container.java:327)
      at org.apache.pivot.wtk.Component.validate(Component.java:1917)
      at org.apache.pivot.wtk.Container.layout(Container.java:327)
      at org.apache.pivot.wtk.Component.validate(Component.java:1917)
      at org.apache.pivot.wtk.Container.layout(Container.java:327)
      at org.apache.pivot.wtk.Component.validate(Component.java:1917)
      at org.apache.pivot.wtk.Container.layout(Container.java:327)
      at org.apache.pivot.wtk.Component.validate(Component.java:1917)
      at org.apache.pivot.wtk.Container.layout(Container.java:327)
      at org.apache.pivot.wtk.Component.validate(Component.java:1917)
      at org.apache.pivot.wtk.ApplicationContext$DisplayHost.processEvent(ApplicationContext.java:656)
      at java.awt.Component.dispatchEventImpl(Component.java:4630)
      at java.awt.Component.dispatchEvent(Component.java:4460)
      at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
      at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
      at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
      at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

      Attachments

        1. TestApp.zip
          2 kB
          Christian Nutz

        Activity

          People

            Unassigned Unassigned
            cnutz Christian Nutz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: