directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Lecharny (JIRA)" <j...@apache.org>
Subject [jira] Closed: (DIRSERVER-966) NPE When ObjectClass Attribute Missing
Date Tue, 02 Dec 2008 23:02:44 GMT

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

Emmanuel Lecharny closed DIRSERVER-966.
---------------------------------------


> NPE When ObjectClass Attribute Missing
> --------------------------------------
>
>                 Key: DIRSERVER-966
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-966
>             Project: Directory ApacheDS
>          Issue Type: Bug
>    Affects Versions: 1.0.3
>            Reporter: Ole Ersoy
>            Assignee: Emmanuel Lecharny
>             Fix For: 1.0.4
>
>
> In the code below the attribute is not added to the attributes.  When attempting to create
a subcontext, this results in an NPE.
>  ========================================
>          Attributes attributes                    =
>              new BasicAttributes();
>          Attribute attribute                        =
>              new BasicAttribute(
>                      "objectClass",
>                      "top");
>          attribute.add("subentry");
>                 directoryContextL0                       =
>               (DirContext)
>               testPartitionContext.
>               createSubcontext(l0RDN, attributes);
>          directoryContextL1                       =
>               (DirContext)
>               directoryContextL0.
>               createSubcontext(l1RDN, attributes);
>  ========================================
> When I try running the test above I get this:
> org.apache.directory.server.core.interceptor.InterceptorException: Unexpected exception.
[Root exception is java.lang.NullPointerException] 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message