Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 83263 invoked from network); 11 Jun 2007 10:30:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Jun 2007 10:30:47 -0000 Received: (qmail 82608 invoked by uid 500); 11 Jun 2007 10:30:50 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 82555 invoked by uid 500); 11 Jun 2007 10:30:50 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 82542 invoked by uid 99); 11 Jun 2007 10:30:50 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Jun 2007 03:30:50 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Jun 2007 03:30:46 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 0B7FE7141F9 for ; Mon, 11 Jun 2007 03:30:26 -0700 (PDT) Message-ID: <28518938.1181557826044.JavaMail.jira@brutus> Date: Mon, 11 Jun 2007 03:30:26 -0700 (PDT) From: "Ole Ersoy (JIRA)" To: dev@directory.apache.org Subject: [jira] Created: (DIRSERVER-966) NPE When ObjectClass Attribute Missing MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org NPE When ObjectClass Attribute Missing -------------------------------------- Key: DIRSERVER-966 URL: https://issues.apache.org/jira/browse/DIRSERVER-966 Project: Directory ApacheDS Issue Type: Bug Reporter: Ole Ersoy 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.