You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Mikhail Loenko (JIRA)" <ji...@apache.org> on 2006/10/20 06:36:38 UTC

[jira] Resolved: (HARMONY-1413) [classlib][html] javax.swing.text.html.parser.AttributeList.getValues() throws NullPointerException

     [ http://issues.apache.org/jira/browse/HARMONY-1413?page=all ]

Mikhail Loenko resolved HARMONY-1413.
-------------------------------------

    Resolution: Fixed

fixed in revision 465986
Miguel please check it resolves the problem

> [classlib][html] javax.swing.text.html.parser.AttributeList.getValues() throws NullPointerException
> ---------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-1413
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1413
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Miguel Montes
>         Assigned To: Mikhail Loenko
>         Attachments: AttributeList_02.patch
>
>
> The method javax.swing.text.html.parser.AttributeList.getValues() throws NullPointerException when the field 'values' is null. In the same situation, the RI returns null.
> ===================================Java code==================================
> import javax.swing.text.html.parser.AttributeList;
> import javax.swing.text.html.parser.DTDConstants;
> public class TestAttributeList {
> 	public static void main(String[] args) {
> 		AttributeList att = new AttributeList("type", DTDConstants.NAME, DTDConstants.REQUIRED, null, null, null);
> 		System.out.println(att.getValues());
> 	}
> }
> ============================================================================
> Output:
> $ /harmony-hdk-r431938/jdk/jre/bin/java -showversion TestAttributeList
> java version "1.5.0"
> pre-alpha : not complete or compatible
> svn = r431938, (Aug 16 2006), Linux/ia32/gcc 3.4.6, release build
> http://incubator.apache.org/harmony
> java.lang.NullPointerException
>         at javax.swing.text.html.parser.AttributeList.getValues(AttributeList.java:140)
>         at TestAttributeList.main(TestAttributeList.java:12)
> $ java -showversion TestAttributeList
> java version "1.5.0"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-b64)
> Java HotSpot(TM) Client VM (build 1.5.0-b64, mixed mode)
> null
> Attached is a patch solving this

-- 
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