diff --git a/CHANGELOG.md b/CHANGELOG.md index c8b974ae5ae05b07da2e56de557e55f9b78c3645..41cf3af0c2e6157d2e31b4f589bf5c256849b89d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -32,6 +32,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed ### +* Missing RecordType leads to unexpected server error + [#166](https://gitlab.com/caosdb/caosdb-server/-/issues/166) + ### Security ### ### Documentation ### diff --git a/src/main/java/org/caosdb/server/jobs/Job.java b/src/main/java/org/caosdb/server/jobs/Job.java index 0e9d7ef79377884853caa2198c84d428aed38e01..9da74edd0db86f6d81a8636020afcdaf3faa9e09 100644 --- a/src/main/java/org/caosdb/server/jobs/Job.java +++ b/src/main/java/org/caosdb/server/jobs/Job.java @@ -555,7 +555,7 @@ public abstract class Job { * * @param entity the entity to be resolved. * @return the resolved entity. - * @throws EntityWasNotUniqueException if the resolution failed due to ambuiguity of the name. + * @throws EntityWasNotUniqueException if the resolution failed due to ambiguity of the name. */ protected EntityInterface resolve(final EntityInterface entity) throws EntityWasNotUniqueException { diff --git a/src/main/java/org/caosdb/server/jobs/core/Inheritance.java b/src/main/java/org/caosdb/server/jobs/core/Inheritance.java index 33c7772811d36a5b9430556fc8926e88e2cd302c..a1bd800c7ca40b28d7b9ff27dd8f828ed112891f 100644 --- a/src/main/java/org/caosdb/server/jobs/core/Inheritance.java +++ b/src/main/java/org/caosdb/server/jobs/core/Inheritance.java @@ -119,7 +119,7 @@ public class Inheritance extends EntityJob { } // implement properties - if (getEntity().hasProperties()) { + if (getEntity().getEntityStatus() == EntityStatus.QUALIFIED && getEntity().hasProperties()) { propertyLoop: for (final Property property : getEntity().getProperties()) { final ArrayList<Property> transfer = new ArrayList<>();