As of April 12th, you must go to Progress SupportLink to create new support cases or to access existing cases. Please, bookmark the SupportLink URL and use the new portal to contact the support team.
Hello, I have the same problem with getTypedObject returning null here:
BookCloud c = this.book.getTypedObject(BookCloud.class);
The problem only appears when I add an integer or float field, If I remove that field then works fine. I also can see the correct values in the kinveyreference "obj" field retrieved.
Here is the BookCloud class with an integer "pages" field added:
public class BookCloud extends extends GenericJson {
@Key private String title;
@Key private String edition;
@Key private int pages;
public BookCloud() {
}
Can you help me?
Thanks.
Andre Mauro Vas
but it is not working with ArrayList.
The getTypedObject always return null !
In order to verify my code I include a test code in UpdateDetailsFragment.java of the Kinvey StatusShare Example:
public void populateViews(){
if (entity.getThumbnail() != null){
image.setImageBitmap(entity.getThumbnail());
}else{
image.setVisibility(View.GONE);
}
text.setText(entity.getText());
author.setText(entity.getAuthorName());
List commentRefs = entity.getComments();
if (commentRefs == null){
return;
}
//***** included test *****
CommentEntity mycomment = commentRefs.get(0).getTypedObject(CommentEntity.class);
//***** included test END ***** => my comment always null
List comments = new ArrayList();
for (KinveyReference kr : commentRefs){
comments.add(kr.getResolvedObject());
}
CommentAdapter adapter = new CommentAdapter(getSherlockActivity(), comments, getSherlockActivity().getLayoutInflater());
commentList.setAdapter(adapter);
}
Always return null from getTypedObject
Thanks,