Related with issue 40905: Prevents NullPointerException when DomainType is null
authorAugusto Mauch <augusto.mauch@openbravo.com>
Mon, 29 Jul 2019 17:13:08 +0200
changeset 36386 635b9156c59d
parent 36385 6457d6616229
child 36387 85d17ee11787
Related with issue 40905: Prevents NullPointerException when DomainType is null
src/org/openbravo/base/model/Property.java
--- a/src/org/openbravo/base/model/Property.java	Mon Jul 29 16:40:42 2019 +0200
+++ b/src/org/openbravo/base/model/Property.java	Mon Jul 29 17:13:08 2019 +0200
@@ -1386,6 +1386,9 @@
    * @return the transformed value
    */
   public Object transformValue(Object value) {
-    return getDomainType().transformValue(this, value);
+    if (domainType != null) {
+      return domainType.transformValue(this, value);
+    }
+    return value;
   }
 }