diff --git a/core/src/main/java/org/springframework/ldap/odm/core/impl/DefaultObjectDirectoryMapper.java b/core/src/main/java/org/springframework/ldap/odm/core/impl/DefaultObjectDirectoryMapper.java
index <HASH>..<HASH> 100644
--- a/core/src/main/java/org/springframework/ldap/odm/core/impl/DefaultObjectDirectoryMapper.java
+++ b/core/src/main/java/org/springframework/ldap/odm/core/impl/DefaultObjectDirectoryMapper.java
@@ -117,7 +117,10 @@ public class DefaultObjectDirectoryMapper implements ObjectDirectoryMapper {
         Set<String> managedAttributeNames = new HashSet<String>();
         // extract all relevant attributes
         for (Field field : entityData.metaData) {
-        	managedAttributeNames.addAll(Arrays.asList(entityData.metaData.getAttribute(field).getAttributes()));
+        	String[] attributesOfField = entityData.metaData.getAttribute(field).getAttributes();
+        	if (attributesOfField != null && attributesOfField.length > 0) {
+        		managedAttributeNames.addAll(Arrays.asList(attributesOfField));
+        	}
         }
         return managedAttributeNames.toArray(new String[managedAttributeNames.size()]);
     }
fix NPE in case of annotated field not having any attributes connected
to it