details: https://code.openbravo.com/erp/devel/pi/rev/b5352d5513c3
changeset: 15121:b5352d5513c3
user: Antonio Moreno <antonio.moreno <at> openbravo.com>
date: Thu Jan 12 09:32:36 2012 +0100
summary: Related to issue 13649. Make condition more robust to avoid failure
diffstat:
src/org/openbravo/dal/xml/EntityXMLConverter.java | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (13 lines):
diff -r f73c0354c932 -r b5352d5513c3
src/org/openbravo/dal/xml/EntityXMLConverter.java
--- a/src/org/openbravo/dal/xml/EntityXMLConverter.java Wed Jan 11 18:02:52
2012 +0100
+++ b/src/org/openbravo/dal/xml/EntityXMLConverter.java Thu Jan 12 09:32:36
2012 +0100
@@ -437,7 +437,8 @@
for (final Object o : childObjects) {
// embed in the parent
if (isOptionEmbedChildren()) {
- final DataSetTable dst =
dataSetTablesByEntity.get(obObject.getEntity());
+ final DataSetTable dst = (obObject != null && obObject.getEntity()
!= null) ? dataSetTablesByEntity
+ .get(obObject.getEntity()) : null;
if ((excludeAuditInfo != null && excludeAuditInfo)
|| (dst != null && dst.isExcludeAuditInfo())) {
export((BaseOBObject) o, false, true);
------------------------------------------------------------------------------
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits