Data update (find and save func.) creates a duplicate row

I am running the code below (from ANDROID client) and it saves the updated object as a new row. Am I doing something wrong?

Backendless.Persistence.of(POST.class).find(dq,new AsyncCallback<BackendlessCollection<POST>>() {
@Override
public void handleResponse(BackendlessCollection<POST> list) {
list.getData().get(0).setNote(commentEditor);
Backendless.Persistence.of(POST.class).save(list.getData().get(0), new AsyncCallback<POST>() {
@Override
public void handleResponse(POST post) {
Toast.makeText(context,“OK”,Toast.LENGTH_LONG).show();
}
@Override
public void handleFault(BackendlessFault backendlessFault) {
}
});
}
@Override
public void handleFault(BackendlessFault backendlessFault) {

}
});
}
});

Hi, Onur,

Could you please share your implementation of POST.java and its related classes?

public class POST {

String tags;
String imgUrl;
String comments;
String note;
String editorUserId;
boolean featured;
boolean cover;
boolean colorful;
String issueNo;
String ownerUserId;

public boolean isColorful() {
	return colorful;
}
public void setColorful(boolean isColorful) {
	this.colorful = isColorful;
}
public boolean isCover() {
	return cover;
}
public void setCover(boolean isCover) {
	this.cover = isCover;
}
public String getNote() {
	return note;
}
public void setNote(String note) {
	this.note = note;
}
public String getEditorUserId() {
	return editorUserId;
}
public void setEditorUserId(String editorUserId) {
	this.editorUserId = editorUserId;
}


public String getTags() {
	return this.tags;
}


public void setTags(String tags) {
	this.tags = tags;
}
public String getImgUrl() {
	return imgUrl;
}
public void setImgUrl(String imgUrl) {
	this.imgUrl = imgUrl;
}
public String getComments() {
	return comments;
}
public void setComments(String comments) {
	this.comments = comments;
}
public boolean isFeatured() {
	return featured;
}
public void setFeatured(boolean isFeatured) {
	this.featured = isFeatured;
}
public String getIssueNo() {
	return issueNo;
}
public void setIssueNo(String issueNo) {
	this.issueNo = issueNo;
}
public String getOwnerUserId() {
	return ownerUserId;
}
public void setOwnerUserId(String ownerUserId) {
	this.ownerUserId = ownerUserId;
}

}

Just to be sure: are you using the latest Backendless AndroidSDK?

I updated it to last version and the problem is solved. Sorry for inconvenience.

You are welcome. Feel free to report any issue if encountered in future.