Skip to content

Commit

Permalink
Unable to retrieve value for field-property 'contacts' during saving …
Browse files Browse the repository at this point in the history
…user object with relation prop
  • Loading branch information
oleg committed Dec 1, 2016
1 parent 70155fe commit 4f89d89
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/com/backendless/FootprintsManager.java
Expand Up @@ -438,10 +438,17 @@ private Object getFieldValue( Object entity, String fieldName )
if( entityFieldValue == null )
entityFieldValue = ((BackendlessUser) entity).getProperty( upperKey );
}
else if( entity instanceof HashMap )
{
entityFieldValue = ((HashMap) entity).get( lowerKey );

if( entityFieldValue == null )
entityFieldValue = ((HashMap) entity).get( upperKey );
}
else
{
// retrieve entity field value
entityFieldValue = ReflectionUtil.getFieldValue( entity, lowerKey, upperKey );
// retrieve entity field value
entityFieldValue = ReflectionUtil.getFieldValue( entity, lowerKey, upperKey );
}
return entityFieldValue;
}
Expand Down

0 comments on commit 4f89d89

Please sign in to comment.