[ 
https://issues.apache.org/jira/browse/DIRKRB-735?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Colm O hEigeartaigh resolved DIRKRB-735.
----------------------------------------
    Resolution: Fixed

> Cannot decode Asn1 enumerated type
> ----------------------------------
>
>                 Key: DIRKRB-735
>                 URL: https://issues.apache.org/jira/browse/DIRKRB-735
>             Project: Directory Kerberos
>          Issue Type: Improvement
>    Affects Versions: 2.0.0
>            Reporter: Martin Goldhahn
>            Assignee: Colm O hEigeartaigh
>            Priority: Minor
>             Fix For: 2.1.1
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> The following code fails with a NPE
> {code:java}
> Asn1Dumper dumper = new Asn1Dumper();
> dumper.decodeAndDump(Base64.getMimeDecoder().decode("oRQwEqADCgEBoQsGCSqGSIb3EgECAg=="));
> System.out.println(dumper.output());
> {code}
> The reason being that Asn1Simple.createSimple(int) returns null for 
> enumeration and Asn1Converter.convertAsSimple(Asn1ParseResult) does not check 
> if the return value of the function is null.
> EitherĀ Asn1Converter.convertAsSimple(Asn1ParseResult) handles null values or 
> there should be a new Asn1Enumerate subclass, that handles enumerations for 
> decoding.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@directory.apache.org
For additional commands, e-mail: dev-h...@directory.apache.org

Reply via email to