Skip to content

Commit a55c6bb

Browse files
sureshbnlukasj
authored andcommitted
Bug_544934 - SERVICE FAILING WITH JAVA.LANG.REFLECT.INVOCATIONTARGETE… (#377)
* Bug_544934 - SERVICE FAILING WITH JAVA.LANG.REFLECT.INVOCATIONTARGETEXCEPTION Signed-off-by: Sureshkumar Balakrishnannair <[email protected]>
1 parent 80f9008 commit a55c6bb

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

sdo/org.eclipse.persistence.sdo/src/org/eclipse/persistence/sdo/helper/SDOUnmappedContentHandler.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1998, 2018 Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1998, 2019 Oracle and/or its affiliates. All rights reserved.
33
*
44
* This program and the accompanying materials are made available under the
55
* terms of the Eclipse Public License v. 2.0 which is available at
@@ -12,6 +12,8 @@
1212

1313
// Contributors:
1414
// Oracle - initial API and implementation from Oracle TopLink
15+
// 01/03/2019 - SureshKumar Balakrishnan
16+
// - 544934 - Added Empty Check in the stack before doing peek() method.
1517
package org.eclipse.persistence.sdo.helper;
1618

1719
import commonj.sdo.DataObject;
@@ -99,9 +101,10 @@ public void endPrefixMapping(String prefix) throws SAXException {
99101
@Override
100102
public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException {
101103
if (isInCharacterBlock) {
102-
if (!currentBuffer.toString().trim().equals("")) {
104+
if (!currentBuffer.toString().trim().equals("") && !currentDataObjects.empty()) {
103105
DataObject dObj = (DataObject) currentDataObjects.peek();
104106
dObj.getSequence().addText(currentBuffer.toString());
107+
105108
}
106109
currentBuffer.reset();
107110
}

0 commit comments

Comments
 (0)