OLINGO-982: fixing the nullable property to be true when omitted on navigation property

This commit is contained in:
Ramesh Reddy 2016-07-22 06:27:51 -05:00
parent ec009caa64
commit 89438caaf5
1 changed files with 1 additions and 1 deletions

View File

@ -915,7 +915,7 @@ public class MetadataParser {
property.setName(attr(element, "Name"));
property.setType(readType(element));
property.setCollection(isCollectionType(element));
property.setNullable(Boolean.parseBoolean(attr(element, "Nullable")));
property.setNullable(Boolean.parseBoolean(attr(element, "Nullable") == null ? "true" : attr(element, "Nullable")));
property.setPartner(attr(element, "Partner"));
property.setContainsTarget(Boolean.parseBoolean(attr(element, "ContainsTarget")));