Paging Library - updating data yields IndexOutOfBoundsException

Multi tool use
Multi tool use












-1














I'm trying to implement RecyclerView with pagination and ability to remove particular items from it, but getting IndexOutOfBoundsException when supplying a new snapshot of data to PagedListAdapter



In my implementation, I keep data in memory and if there is a deletion I remove data in the list and initialize newly created datasource after invalidation with modified list. New snapshot has fewer elements than the old one, which is the cause for the exception as I think.
Interesting fact is when there is a deletion for the first time or just update to the item it works but for the second deletion I get IndexOutOfBoundsException



In activity:



RecyclerView rv = binding.rvListInbox;
rv.setLayoutManager(new LinearLayoutManager(this));
ListEmailAdapter listEmailAdapter = new ListEmailAdapter();
viewModel.getMailsList().observe(this, listEmailAdapter::submitList);
rv.setAdapter(listEmailAdapter);


ViewModel:



class ListEmailViewModel extends ViewModel {
private static final int PAGE_SIZE = 12;
private LiveData<PagedList<Mails>> mMailsList;
private MailListRepository mailListRepository;
private MailDataSourceFactory mailDataSourceFactory;

ListEmailViewModel(String folder) {
mailListRepository = new MailListRepository(folder);

mailDataSourceFactory = new MailDataSourceFactory(mailListRepository);

PagedList.Config config = new PagedList.Config.Builder()
.setEnablePlaceholders(false)
.setPageSize(PAGE_SIZE)
.setPrefetchDistance(36)
.build();

mMailsList = new LivePagedListBuilder<>(mailDataSourceFactory, config).build();
}

LiveData<PagedList<Mails>> getMailsList() {
return mMailsList;
}

@Override
protected void onCleared() {
super.onCleared();
mailListRepository.onCleared();
}

void removeMailAt(int mailIndex) {
mailListRepository.removeMailAt(mailIndex);
mailDataSourceFactory.getSource().invalidate();
}
}


Datasource



public class MailDataSource extends PageKeyedDataSource<Integer, Mails> {

private MailListRepository mailListRepository;

MailDataSource(MailListRepository mailListRepository) {
this.mailListRepository = mailListRepository;
}

@Override
public void loadInitial(@NonNull LoadInitialParams<Integer> params, @NonNull LoadInitialCallback<Integer, Mails> callback) {
mailListRepository.loadInitial(mailList -> callback.onResult(mailList, null, null));
}

@Override
public void loadBefore(@NonNull LoadParams<Integer> params, @NonNull LoadCallback<Integer, Mails> callback) {
}

@Override
public void loadAfter(@NonNull LoadParams<Integer> params, @NonNull LoadCallback<Integer, Mails> callback) {
mailListRepository.loadAfter(mailList -> callback.onResult(mailList, null));
}
}


Repository



   public class MailListRepository {
private static int INITIAL_PAGE = 1;

private String folder;
private ArrayList<Mails> mailsList = new ArrayList<>();
private int nextPage = INITIAL_PAGE;
private boolean hasNextPage = true;
private Subscription subscription;

public MailListRepository(String folder) {
this.folder = folder;
}

public void removeMailAt(int mailIndex) {
mailsList.remove(mailIndex);
}

public interface OnMailListCallback {
void mailListData(List<Mails> mailList);
}

public void loadInitial(OnMailListCallback onMailListCallback) {
if(!mailsList.isEmpty()) onMailListCallback.mailListData(mailsList);
else fetchMail(onMailListCallback);
}

public void loadAfter(OnMailListCallback onMailListCallback) {
fetchMail(onMailListCallback);
}

private void fetchMail(OnMailListCallback onMailListCallback){
if(!hasNextPage) return;
subscription = ApiRequest.getInstance().getApi().getMailList(folder, nextPage)
.subscribeOn(Schedulers.newThread())
.observeOn(AndroidSchedulers.mainThread())
.subscribe(mails -> {
mailsList.addAll(mails.getMails());
nextPage++;
hasNextPage = nextPage < mails.getPagination().getTotalPages();
onMailListCallback.mailListData(mails.getMails());
}, Throwable::printStackTrace);
}

public void onCleared(){
subscription.unsubscribe();
}
}


DataSourceFactory



public class MailDataSourceFactory extends DataSource.Factory<Integer, Mails> {
private MailListRepository mailListRepository;
private MailDataSource source;
private MutableLiveData<MailDataSource> mSourceLiveData =
new MutableLiveData<>();

public MailDataSourceFactory(MailListRepository mailListRepository) {
this.mailListRepository = mailListRepository;
}

@Override
public DataSource<Integer, Mails> create() {
source = new MailDataSource(mailListRepository);
mSourceLiveData.postValue(source);
return source;
}

public MailDataSource getSource() {
return source;
}
}


Diff callback in PagedListAdapter



    private static DiffUtil.ItemCallback<Mails> DIFF_CALLBACK =
new DiffUtil.ItemCallback<Mails>() {
@Override
public boolean areItemsTheSame(Mails oldMails, Mails newMails) {
return oldMails.getUid() == newMails.getUid();
}

@Override
public boolean areContentsTheSame(Mails oldMails,
Mails newMails) {
return true;
}
};
}









share|improve this question









New contributor




Roman Bodnarchuk is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
















  • 1




    Show us a minimal code example for this problem
    – Jeroen Heier
    Dec 27 '18 at 16:49










  • @JeroenHeier added code
    – Roman Bodnarchuk
    Dec 28 '18 at 10:58
















-1














I'm trying to implement RecyclerView with pagination and ability to remove particular items from it, but getting IndexOutOfBoundsException when supplying a new snapshot of data to PagedListAdapter



In my implementation, I keep data in memory and if there is a deletion I remove data in the list and initialize newly created datasource after invalidation with modified list. New snapshot has fewer elements than the old one, which is the cause for the exception as I think.
Interesting fact is when there is a deletion for the first time or just update to the item it works but for the second deletion I get IndexOutOfBoundsException



In activity:



RecyclerView rv = binding.rvListInbox;
rv.setLayoutManager(new LinearLayoutManager(this));
ListEmailAdapter listEmailAdapter = new ListEmailAdapter();
viewModel.getMailsList().observe(this, listEmailAdapter::submitList);
rv.setAdapter(listEmailAdapter);


ViewModel:



class ListEmailViewModel extends ViewModel {
private static final int PAGE_SIZE = 12;
private LiveData<PagedList<Mails>> mMailsList;
private MailListRepository mailListRepository;
private MailDataSourceFactory mailDataSourceFactory;

ListEmailViewModel(String folder) {
mailListRepository = new MailListRepository(folder);

mailDataSourceFactory = new MailDataSourceFactory(mailListRepository);

PagedList.Config config = new PagedList.Config.Builder()
.setEnablePlaceholders(false)
.setPageSize(PAGE_SIZE)
.setPrefetchDistance(36)
.build();

mMailsList = new LivePagedListBuilder<>(mailDataSourceFactory, config).build();
}

LiveData<PagedList<Mails>> getMailsList() {
return mMailsList;
}

@Override
protected void onCleared() {
super.onCleared();
mailListRepository.onCleared();
}

void removeMailAt(int mailIndex) {
mailListRepository.removeMailAt(mailIndex);
mailDataSourceFactory.getSource().invalidate();
}
}


Datasource



public class MailDataSource extends PageKeyedDataSource<Integer, Mails> {

private MailListRepository mailListRepository;

MailDataSource(MailListRepository mailListRepository) {
this.mailListRepository = mailListRepository;
}

@Override
public void loadInitial(@NonNull LoadInitialParams<Integer> params, @NonNull LoadInitialCallback<Integer, Mails> callback) {
mailListRepository.loadInitial(mailList -> callback.onResult(mailList, null, null));
}

@Override
public void loadBefore(@NonNull LoadParams<Integer> params, @NonNull LoadCallback<Integer, Mails> callback) {
}

@Override
public void loadAfter(@NonNull LoadParams<Integer> params, @NonNull LoadCallback<Integer, Mails> callback) {
mailListRepository.loadAfter(mailList -> callback.onResult(mailList, null));
}
}


Repository



   public class MailListRepository {
private static int INITIAL_PAGE = 1;

private String folder;
private ArrayList<Mails> mailsList = new ArrayList<>();
private int nextPage = INITIAL_PAGE;
private boolean hasNextPage = true;
private Subscription subscription;

public MailListRepository(String folder) {
this.folder = folder;
}

public void removeMailAt(int mailIndex) {
mailsList.remove(mailIndex);
}

public interface OnMailListCallback {
void mailListData(List<Mails> mailList);
}

public void loadInitial(OnMailListCallback onMailListCallback) {
if(!mailsList.isEmpty()) onMailListCallback.mailListData(mailsList);
else fetchMail(onMailListCallback);
}

public void loadAfter(OnMailListCallback onMailListCallback) {
fetchMail(onMailListCallback);
}

private void fetchMail(OnMailListCallback onMailListCallback){
if(!hasNextPage) return;
subscription = ApiRequest.getInstance().getApi().getMailList(folder, nextPage)
.subscribeOn(Schedulers.newThread())
.observeOn(AndroidSchedulers.mainThread())
.subscribe(mails -> {
mailsList.addAll(mails.getMails());
nextPage++;
hasNextPage = nextPage < mails.getPagination().getTotalPages();
onMailListCallback.mailListData(mails.getMails());
}, Throwable::printStackTrace);
}

public void onCleared(){
subscription.unsubscribe();
}
}


DataSourceFactory



public class MailDataSourceFactory extends DataSource.Factory<Integer, Mails> {
private MailListRepository mailListRepository;
private MailDataSource source;
private MutableLiveData<MailDataSource> mSourceLiveData =
new MutableLiveData<>();

public MailDataSourceFactory(MailListRepository mailListRepository) {
this.mailListRepository = mailListRepository;
}

@Override
public DataSource<Integer, Mails> create() {
source = new MailDataSource(mailListRepository);
mSourceLiveData.postValue(source);
return source;
}

public MailDataSource getSource() {
return source;
}
}


Diff callback in PagedListAdapter



    private static DiffUtil.ItemCallback<Mails> DIFF_CALLBACK =
new DiffUtil.ItemCallback<Mails>() {
@Override
public boolean areItemsTheSame(Mails oldMails, Mails newMails) {
return oldMails.getUid() == newMails.getUid();
}

@Override
public boolean areContentsTheSame(Mails oldMails,
Mails newMails) {
return true;
}
};
}









share|improve this question









New contributor




Roman Bodnarchuk is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
















  • 1




    Show us a minimal code example for this problem
    – Jeroen Heier
    Dec 27 '18 at 16:49










  • @JeroenHeier added code
    – Roman Bodnarchuk
    Dec 28 '18 at 10:58














-1












-1








-1







I'm trying to implement RecyclerView with pagination and ability to remove particular items from it, but getting IndexOutOfBoundsException when supplying a new snapshot of data to PagedListAdapter



In my implementation, I keep data in memory and if there is a deletion I remove data in the list and initialize newly created datasource after invalidation with modified list. New snapshot has fewer elements than the old one, which is the cause for the exception as I think.
Interesting fact is when there is a deletion for the first time or just update to the item it works but for the second deletion I get IndexOutOfBoundsException



In activity:



RecyclerView rv = binding.rvListInbox;
rv.setLayoutManager(new LinearLayoutManager(this));
ListEmailAdapter listEmailAdapter = new ListEmailAdapter();
viewModel.getMailsList().observe(this, listEmailAdapter::submitList);
rv.setAdapter(listEmailAdapter);


ViewModel:



class ListEmailViewModel extends ViewModel {
private static final int PAGE_SIZE = 12;
private LiveData<PagedList<Mails>> mMailsList;
private MailListRepository mailListRepository;
private MailDataSourceFactory mailDataSourceFactory;

ListEmailViewModel(String folder) {
mailListRepository = new MailListRepository(folder);

mailDataSourceFactory = new MailDataSourceFactory(mailListRepository);

PagedList.Config config = new PagedList.Config.Builder()
.setEnablePlaceholders(false)
.setPageSize(PAGE_SIZE)
.setPrefetchDistance(36)
.build();

mMailsList = new LivePagedListBuilder<>(mailDataSourceFactory, config).build();
}

LiveData<PagedList<Mails>> getMailsList() {
return mMailsList;
}

@Override
protected void onCleared() {
super.onCleared();
mailListRepository.onCleared();
}

void removeMailAt(int mailIndex) {
mailListRepository.removeMailAt(mailIndex);
mailDataSourceFactory.getSource().invalidate();
}
}


Datasource



public class MailDataSource extends PageKeyedDataSource<Integer, Mails> {

private MailListRepository mailListRepository;

MailDataSource(MailListRepository mailListRepository) {
this.mailListRepository = mailListRepository;
}

@Override
public void loadInitial(@NonNull LoadInitialParams<Integer> params, @NonNull LoadInitialCallback<Integer, Mails> callback) {
mailListRepository.loadInitial(mailList -> callback.onResult(mailList, null, null));
}

@Override
public void loadBefore(@NonNull LoadParams<Integer> params, @NonNull LoadCallback<Integer, Mails> callback) {
}

@Override
public void loadAfter(@NonNull LoadParams<Integer> params, @NonNull LoadCallback<Integer, Mails> callback) {
mailListRepository.loadAfter(mailList -> callback.onResult(mailList, null));
}
}


Repository



   public class MailListRepository {
private static int INITIAL_PAGE = 1;

private String folder;
private ArrayList<Mails> mailsList = new ArrayList<>();
private int nextPage = INITIAL_PAGE;
private boolean hasNextPage = true;
private Subscription subscription;

public MailListRepository(String folder) {
this.folder = folder;
}

public void removeMailAt(int mailIndex) {
mailsList.remove(mailIndex);
}

public interface OnMailListCallback {
void mailListData(List<Mails> mailList);
}

public void loadInitial(OnMailListCallback onMailListCallback) {
if(!mailsList.isEmpty()) onMailListCallback.mailListData(mailsList);
else fetchMail(onMailListCallback);
}

public void loadAfter(OnMailListCallback onMailListCallback) {
fetchMail(onMailListCallback);
}

private void fetchMail(OnMailListCallback onMailListCallback){
if(!hasNextPage) return;
subscription = ApiRequest.getInstance().getApi().getMailList(folder, nextPage)
.subscribeOn(Schedulers.newThread())
.observeOn(AndroidSchedulers.mainThread())
.subscribe(mails -> {
mailsList.addAll(mails.getMails());
nextPage++;
hasNextPage = nextPage < mails.getPagination().getTotalPages();
onMailListCallback.mailListData(mails.getMails());
}, Throwable::printStackTrace);
}

public void onCleared(){
subscription.unsubscribe();
}
}


DataSourceFactory



public class MailDataSourceFactory extends DataSource.Factory<Integer, Mails> {
private MailListRepository mailListRepository;
private MailDataSource source;
private MutableLiveData<MailDataSource> mSourceLiveData =
new MutableLiveData<>();

public MailDataSourceFactory(MailListRepository mailListRepository) {
this.mailListRepository = mailListRepository;
}

@Override
public DataSource<Integer, Mails> create() {
source = new MailDataSource(mailListRepository);
mSourceLiveData.postValue(source);
return source;
}

public MailDataSource getSource() {
return source;
}
}


Diff callback in PagedListAdapter



    private static DiffUtil.ItemCallback<Mails> DIFF_CALLBACK =
new DiffUtil.ItemCallback<Mails>() {
@Override
public boolean areItemsTheSame(Mails oldMails, Mails newMails) {
return oldMails.getUid() == newMails.getUid();
}

@Override
public boolean areContentsTheSame(Mails oldMails,
Mails newMails) {
return true;
}
};
}









share|improve this question









New contributor




Roman Bodnarchuk is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











I'm trying to implement RecyclerView with pagination and ability to remove particular items from it, but getting IndexOutOfBoundsException when supplying a new snapshot of data to PagedListAdapter



In my implementation, I keep data in memory and if there is a deletion I remove data in the list and initialize newly created datasource after invalidation with modified list. New snapshot has fewer elements than the old one, which is the cause for the exception as I think.
Interesting fact is when there is a deletion for the first time or just update to the item it works but for the second deletion I get IndexOutOfBoundsException



In activity:



RecyclerView rv = binding.rvListInbox;
rv.setLayoutManager(new LinearLayoutManager(this));
ListEmailAdapter listEmailAdapter = new ListEmailAdapter();
viewModel.getMailsList().observe(this, listEmailAdapter::submitList);
rv.setAdapter(listEmailAdapter);


ViewModel:



class ListEmailViewModel extends ViewModel {
private static final int PAGE_SIZE = 12;
private LiveData<PagedList<Mails>> mMailsList;
private MailListRepository mailListRepository;
private MailDataSourceFactory mailDataSourceFactory;

ListEmailViewModel(String folder) {
mailListRepository = new MailListRepository(folder);

mailDataSourceFactory = new MailDataSourceFactory(mailListRepository);

PagedList.Config config = new PagedList.Config.Builder()
.setEnablePlaceholders(false)
.setPageSize(PAGE_SIZE)
.setPrefetchDistance(36)
.build();

mMailsList = new LivePagedListBuilder<>(mailDataSourceFactory, config).build();
}

LiveData<PagedList<Mails>> getMailsList() {
return mMailsList;
}

@Override
protected void onCleared() {
super.onCleared();
mailListRepository.onCleared();
}

void removeMailAt(int mailIndex) {
mailListRepository.removeMailAt(mailIndex);
mailDataSourceFactory.getSource().invalidate();
}
}


Datasource



public class MailDataSource extends PageKeyedDataSource<Integer, Mails> {

private MailListRepository mailListRepository;

MailDataSource(MailListRepository mailListRepository) {
this.mailListRepository = mailListRepository;
}

@Override
public void loadInitial(@NonNull LoadInitialParams<Integer> params, @NonNull LoadInitialCallback<Integer, Mails> callback) {
mailListRepository.loadInitial(mailList -> callback.onResult(mailList, null, null));
}

@Override
public void loadBefore(@NonNull LoadParams<Integer> params, @NonNull LoadCallback<Integer, Mails> callback) {
}

@Override
public void loadAfter(@NonNull LoadParams<Integer> params, @NonNull LoadCallback<Integer, Mails> callback) {
mailListRepository.loadAfter(mailList -> callback.onResult(mailList, null));
}
}


Repository



   public class MailListRepository {
private static int INITIAL_PAGE = 1;

private String folder;
private ArrayList<Mails> mailsList = new ArrayList<>();
private int nextPage = INITIAL_PAGE;
private boolean hasNextPage = true;
private Subscription subscription;

public MailListRepository(String folder) {
this.folder = folder;
}

public void removeMailAt(int mailIndex) {
mailsList.remove(mailIndex);
}

public interface OnMailListCallback {
void mailListData(List<Mails> mailList);
}

public void loadInitial(OnMailListCallback onMailListCallback) {
if(!mailsList.isEmpty()) onMailListCallback.mailListData(mailsList);
else fetchMail(onMailListCallback);
}

public void loadAfter(OnMailListCallback onMailListCallback) {
fetchMail(onMailListCallback);
}

private void fetchMail(OnMailListCallback onMailListCallback){
if(!hasNextPage) return;
subscription = ApiRequest.getInstance().getApi().getMailList(folder, nextPage)
.subscribeOn(Schedulers.newThread())
.observeOn(AndroidSchedulers.mainThread())
.subscribe(mails -> {
mailsList.addAll(mails.getMails());
nextPage++;
hasNextPage = nextPage < mails.getPagination().getTotalPages();
onMailListCallback.mailListData(mails.getMails());
}, Throwable::printStackTrace);
}

public void onCleared(){
subscription.unsubscribe();
}
}


DataSourceFactory



public class MailDataSourceFactory extends DataSource.Factory<Integer, Mails> {
private MailListRepository mailListRepository;
private MailDataSource source;
private MutableLiveData<MailDataSource> mSourceLiveData =
new MutableLiveData<>();

public MailDataSourceFactory(MailListRepository mailListRepository) {
this.mailListRepository = mailListRepository;
}

@Override
public DataSource<Integer, Mails> create() {
source = new MailDataSource(mailListRepository);
mSourceLiveData.postValue(source);
return source;
}

public MailDataSource getSource() {
return source;
}
}


Diff callback in PagedListAdapter



    private static DiffUtil.ItemCallback<Mails> DIFF_CALLBACK =
new DiffUtil.ItemCallback<Mails>() {
@Override
public boolean areItemsTheSame(Mails oldMails, Mails newMails) {
return oldMails.getUid() == newMails.getUid();
}

@Override
public boolean areContentsTheSame(Mails oldMails,
Mails newMails) {
return true;
}
};
}






android indexoutofboundsexception android-paging






share|improve this question









New contributor




Roman Bodnarchuk is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




Roman Bodnarchuk is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited Dec 28 '18 at 10:56





















New contributor




Roman Bodnarchuk is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked Dec 27 '18 at 16:35









Roman Bodnarchuk

11




11




New contributor




Roman Bodnarchuk is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Roman Bodnarchuk is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Roman Bodnarchuk is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








  • 1




    Show us a minimal code example for this problem
    – Jeroen Heier
    Dec 27 '18 at 16:49










  • @JeroenHeier added code
    – Roman Bodnarchuk
    Dec 28 '18 at 10:58














  • 1




    Show us a minimal code example for this problem
    – Jeroen Heier
    Dec 27 '18 at 16:49










  • @JeroenHeier added code
    – Roman Bodnarchuk
    Dec 28 '18 at 10:58








1




1




Show us a minimal code example for this problem
– Jeroen Heier
Dec 27 '18 at 16:49




Show us a minimal code example for this problem
– Jeroen Heier
Dec 27 '18 at 16:49












@JeroenHeier added code
– Roman Bodnarchuk
Dec 28 '18 at 10:58




@JeroenHeier added code
– Roman Bodnarchuk
Dec 28 '18 at 10:58

















active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});






Roman Bodnarchuk is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53948129%2fpaging-library-updating-data-yields-indexoutofboundsexception%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes








Roman Bodnarchuk is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















Roman Bodnarchuk is a new contributor. Be nice, and check out our Code of Conduct.













Roman Bodnarchuk is a new contributor. Be nice, and check out our Code of Conduct.












Roman Bodnarchuk is a new contributor. Be nice, and check out our Code of Conduct.
















Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53948129%2fpaging-library-updating-data-yields-indexoutofboundsexception%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







tHYnwB
gWvmtbbyCizIVRf,SDemq4I

Popular posts from this blog

Monofisismo

Angular Downloading a file using contenturl with Basic Authentication

Olmecas