harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey Petrenko (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-1964) [classlib][awt]Junit AWT TestRunner throws NPE in "Errors and Failures" text area
Date Thu, 07 Dec 2006 12:25:25 GMT
     [ http://issues.apache.org/jira/browse/HARMONY-1964?page=all ]

Alexey Petrenko updated HARMONY-1964:
-------------------------------------

    Patch Info: [Patch Available]

> [classlib][awt]Junit AWT TestRunner throws NPE in "Errors and Failures" text area
> ---------------------------------------------------------------------------------
>
>                 Key: HARMONY-1964
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1964
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Ilya Okomin
>            Priority: Minor
>         Attachments: Harmony-1964.patch
>
>
> Description: AWT TestRunner throws NPE in "Errors and Failures" text area
> Steps to Reproduce:
> 1. java -cp junit.jar junit.awtui.TestRunner
> 2. press Tab key three times to get to the  "Errors and Failures" text area component
> 3. press arrow key
> Result: 
> java.lang.NullPointerException
>         at org.apache.harmony.awt.text.TextUtils.getRowStart(TextUtils.java:314)
>         at org.apache.harmony.awt.text.TextUtils.getPositionAbove(TextUtils.java:392)
>         at org.apache.harmony.awt.text.TextUtils.getNextVisualPositionFrom(TextUtils.java:587)
>         at javax.swing.text.View.getNextVisualPositionFrom(View.java:188)
>         at javax.swing.text.RootView.getNextVisualPositionFrom(RootView.java:97)
>         at org.apache.harmony.awt.text.ActionSet$NextVisualPositionAction.internalPerformAction(ActionSet.java:218)
>         at org.apache.harmony.awt.text.AWTTextAction.performAction(AWTTextAction.java:27)
>         at java.awt.TextComponent.performTextAction(TextComponent.java:1106)
>         at java.awt.TextComponent$KeyHandler.performAction(TextComponent.java:284)
>         at java.awt.TextComponent$KeyHandler.keyPressed(TextComponent.java:256)
>         at java.awt.Component.processKeyEventImpl(Component.java:3897)
>         at java.awt.Component.preprocessKeyEvent(Component.java:3616)
>         at java.awt.TextComponent.postprocessEvent(TextComponent.java:1095)
>         at java.awt.Component.dispatchEvent(Component.java:3545)
>         at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:283)
>         at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:373)
>         at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:94)
>         at java.awt.Component.dispatchEvent(Component.java:3518)
>         at java.awt.EventQueueCore.dispatchEventImpl(EventQueueCore.java:139)
>         at java.awt.EventQueue.dispatchEvent(EventQueue.java:144)
>         at java.awt.EventDispatchThread.runModalLoop(EventDispatchThread.java:67)
>         at java.awt.EventDispatchThread.run(EventDispatchThread.java:45)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message