From f36d89cadfb654837e859214067db8b94b99365c Mon Sep 17 00:00:00 2001
From: Khaled Noaman <knoaman@apache.org>
Date: Mon, 26 Aug 2002 23:48:09 +0000
Subject: [PATCH] Fix for ValueStore's null pointer.

git-svn-id: https://svn.apache.org/repos/asf/xerces/c/trunk@174186 13f79535-47bb-0310-9956-ffa450edef68
---
 .../validators/schema/identity/ValueStoreCache.cpp    | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/src/xercesc/validators/schema/identity/ValueStoreCache.cpp b/src/xercesc/validators/schema/identity/ValueStoreCache.cpp
index 69daac293..95caab796 100644
--- a/src/xercesc/validators/schema/identity/ValueStoreCache.cpp
+++ b/src/xercesc/validators/schema/identity/ValueStoreCache.cpp
@@ -56,8 +56,11 @@
 
 /*
  * $Log$
- * Revision 1.1  2002/02/01 22:22:51  peiyongz
- * Initial revision
+ * Revision 1.2  2002/08/26 23:48:09  knoaman
+ * Fix for ValueStore's null pointer.
+ *
+ * Revision 1.1.1.1  2002/02/01 22:22:51  peiyongz
+ * sane_include
  *
  * Revision 1.1  2001/11/02 14:08:40  knoaman
  * Add support for identity constraints.
@@ -194,6 +197,10 @@ void ValueStoreCache::transplant(IdentityConstraint* const ic) {
     } else {
         fGlobalICMap->put(ic, newVals);
     }
+
+    ValueStore* valueStore = new ValueStore(ic, fScanner);
+    fValueStores->addElement(valueStore);
+    fIC2ValueStoreMap->put(ic, valueStore);
 }
 
 /**
-- 
GitLab