Fix for CompareOperationBasis.getEntryDN()
When the rawEntryDN of a CompareOperationBasis is modified, the field entryDN is
reset and not initialized. If the getEntryDN() routine is called and entryDN is
null, it should try to decode the rawEntryDN.
| | |
| | | * CDDL HEADER END |
| | | * |
| | | * |
| | | * Copyright 2007-2008 Sun Microsystems, Inc. |
| | | * Copyright 2007-2009 Sun Microsystems, Inc. |
| | | */ |
| | | package org.opends.server.core; |
| | | import org.opends.messages.MessageBuilder; |
| | |
| | | */ |
| | | public final DN getEntryDN() |
| | | { |
| | | if (entryDN == null) { |
| | | try |
| | | { |
| | | entryDN = DN.decode(rawEntryDN); |
| | | } |
| | | catch (DirectoryException de) |
| | | { |
| | | if (debugEnabled()) |
| | | { |
| | | TRACER.debugCaught(DebugLogLevel.ERROR, de); |
| | | } |
| | | |
| | | setResultCode(de.getResultCode()); |
| | | appendErrorMessage(de.getMessageObject()); |
| | | } |
| | | } |
| | | return entryDN; |
| | | } |
| | | |