summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntje Fuhrmann2013-06-06 02:30:52 (EDT)
committer Stephan Born2013-09-06 07:19:44 (EDT)
commitf20fe1fe37abcce801c0b8ec795dd33dddd21340 (patch)
treec7716d4d6e6356cbc522fbd0976c164c965d7d5d
parent03c66d60d8efd468719942edd248a6493902e3f4 (diff)
downloadorg.eclipse.stardust.engine-f20fe1fe37abcce801c0b8ec795dd33dddd21340.zip
org.eclipse.stardust.engine-f20fe1fe37abcce801c0b8ec795dd33dddd21340.tar.gz
org.eclipse.stardust.engine-f20fe1fe37abcce801c0b8ec795dd33dddd21340.tar.bz2
Jira-ID: CRNT-29170
DMS: NullPointerException occurs in Activity that attempts to update a DMS Document. git-svn-id: https://svn.csa.sungard.com/repos/ipp2/product/branches/b_dev_7_1_x/stardust/engine@65388 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b Signed-off-by: Antje Fuhrmann <antje.fuhrmann@sungard.com>
-rw-r--r--stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/runtime/beans/LargeStringHolderBigDataHandler.java17
1 files changed, 15 insertions, 2 deletions
diff --git a/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/runtime/beans/LargeStringHolderBigDataHandler.java b/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/runtime/beans/LargeStringHolderBigDataHandler.java
index d49675c..585ab17 100644
--- a/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/runtime/beans/LargeStringHolderBigDataHandler.java
+++ b/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/runtime/beans/LargeStringHolderBigDataHandler.java
@@ -645,8 +645,21 @@ public class LargeStringHolderBigDataHandler implements BigDataHandler
{
IXPathMap xPathMap = DataXPathMap.getXPathMap(theData);
TypedXPath typedXPath = xPathMap.getXPath(sdv.getXPathOID());
- String xsdTypeName = typedXPath.getXsdTypeName();
- tryParseDouble = "decimal".equals(xsdTypeName);
+ if (typedXPath == null)
+ {
+ StringBuffer errorMsg = new StringBuffer();
+ errorMsg.append("Could not find XPath for structured data: ");
+ errorMsg.append(theData.getId());
+ errorMsg.append(" for xpath oid ");
+ errorMsg.append(sdv.getXPathOID());
+ trace.warn(errorMsg);
+ tryParseDouble = false;
+ }
+ else
+ {
+ String xsdTypeName = typedXPath.getXsdTypeName();
+ tryParseDouble = "decimal".equals(xsdTypeName);
+ }
}
else
{