Skip to content
Snippets Groups Projects
Commit 175804e6 authored by jakubs's avatar jakubs
Browse files

BUGFIX: fix the problem with batch import of material properties, where...

BUGFIX: fix the problem with batch import of material properties, where property type is any material

SVN: 28388
parent bd76980c
No related branches found
No related tags found
No related merge requests found
...@@ -357,9 +357,14 @@ class EntityExistenceChecker ...@@ -357,9 +357,14 @@ class EntityExistenceChecker
{ {
String value = property.getValue(); String value = property.getValue();
MaterialTypePE materialType = propertyTypePE.getMaterialType(); MaterialTypePE materialType = propertyTypePE.getMaterialType();
MaterialIdentifier materialIdentifier = if (materialType != null) // if material type is null, it means, the property is of
new MaterialIdentifier(value, materialType.getCode()); // "any material type", so we don't need to check if it
materialExistenceManager.exists(materialIdentifier); // exist
{
MaterialIdentifier materialIdentifier =
new MaterialIdentifier(value, materialType.getCode());
materialExistenceManager.exists(materialIdentifier);
}
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment