harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Miguel Montes (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-1413) [classlib][html] javax.swing.text.html.parser.AttributeList.getValues() throws NullPointerException
Date Fri, 08 Sep 2006 23:53:23 GMT
     [ http://issues.apache.org/jira/browse/HARMONY-1413?page=all ]

Miguel Montes updated HARMONY-1413:
-----------------------------------

    Attachment: AttributeList_02.patch

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

        

Mime
View raw message