English

NPEFix: Automatic Runtime Repair of Null Pointer Exceptions in Java

Software Engineering 2015-12-24 v1

Abstract

Null pointer exceptions, also known as null dereferences are the number one exceptions in the field. In this paper, we propose 9 alternative execution semantics when a null pointer exception is about to happen. We implement those alternative execution strategies using code transformation in a tool called NPEfix. We evaluate our prototype implementation on 11 field null dereference bugs and 519 seeded failures and show that NPEfix is able to repair at runtime 10/11 and 318/519 failures.

Cite

@article{arxiv.1512.07423,
  title  = {NPEFix: Automatic Runtime Repair of Null Pointer Exceptions in Java},
  author = {Benoit Cornu and Thomas Durieux and Lionel Seinturier and Martin Monperrus},
  journal= {arXiv preprint arXiv:1512.07423},
  year   = {2015}
}
R2 v1 2026-06-22T12:16:36.574Z