From e1a25162e14221058383f0ef24739cecea7bfeae Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Thu, 04 Dec 2008 00:09:06 +0000
Subject: [PATCH] Update the code of the ObjectClassValue class to handle the case where an entry has not an structural objectclass.
---
opendj-sdk/opends/src/guitools/org/opends/guitools/controlpanel/datamodel/ObjectClassValue.java | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/opendj-sdk/opends/src/guitools/org/opends/guitools/controlpanel/datamodel/ObjectClassValue.java b/opendj-sdk/opends/src/guitools/org/opends/guitools/controlpanel/datamodel/ObjectClassValue.java
index 46b8b8a..7e9b0e3 100644
--- a/opendj-sdk/opends/src/guitools/org/opends/guitools/controlpanel/datamodel/ObjectClassValue.java
+++ b/opendj-sdk/opends/src/guitools/org/opends/guitools/controlpanel/datamodel/ObjectClassValue.java
@@ -52,7 +52,11 @@
{
this.structural = structural;
this.auxiliary.addAll(auxiliary);
- hashCode = structural.hashCode();
+ if (structural != null)
+ {
+ // This can happen when the schema checking is not enabled.
+ hashCode = structural.hashCode();
+ }
for (String oc : auxiliary)
{
hashCode += oc.hashCode();
--
Gitblit v1.10.0