05-11-2012 12:25 AM
I have a RecordStore with some records in there. These Records will be displayed in List format on the screen. When I select a record I will delete this record from the RecordStore by pressing the "Delete" Command.
At the moment I do it with this command:
It works fine but it seems to me that the content will be deletet but the "space" remains.
RecordStore at the beginning:
RecordStore after deleteing item with ID=2:
The problem is that I display all the items in a list after deleting a item, so a "NullpointerException" comes when I do this.
I thought that the RecordStore sorts himself after deleting an item, so that it has to look like this:
This is what I expected but I think it is like the example above with the null value.
So is there any way to delet a Record without having a null value in my RecordStore????
I hope my question is not too confusing but it's hard to explain.
If sb. can help me would be very nice.
05-11-2012 03:19 AM