An Automatic Localization Tool for Null Pointer Exceptions
Null pointer exceptions are common software faults, but they are dangerous and can cause a program to crash if they occur. In addition, it is hard to find them by simply running test cases. When a null pointer exception occurs, the stack trace stored by the Java runtime environment can help us to lo...
Main Authors: | , , , , , |
---|---|
Format: | Article |
Language: | English |
Published: |
IEEE
2019-01-01
|
Series: | IEEE Access |
Subjects: | |
Online Access: | https://ieeexplore.ieee.org/document/8876852/ |
_version_ | 1819178804598276096 |
---|---|
author | Jing Duan Shujuan Jiang Qiao Yu Kai Lu Xu Zhang Yiwen Yao |
author_facet | Jing Duan Shujuan Jiang Qiao Yu Kai Lu Xu Zhang Yiwen Yao |
author_sort | Jing Duan |
collection | DOAJ |
description | Null pointer exceptions are common software faults, but they are dangerous and can cause a program to crash if they occur. In addition, it is hard to find them by simply running test cases. When a null pointer exception occurs, the stack trace stored by the Java runtime environment can help us to locate the cause of the exception. In this paper, firstly, we propose an automatically null pointer exception localization approach guided by stack trace, from the null pointer dereference to the null value assignment point. Secondly, an empirical study is designed to evaluate the effectiveness of the tool on eight open source projects. The experimental results show that the tool is effective in locating the null pointer exception. |
first_indexed | 2024-12-22T21:48:22Z |
format | Article |
id | doaj.art-b6cd5fdc96f84c1aa4823e319f7b317b |
institution | Directory Open Access Journal |
issn | 2169-3536 |
language | English |
last_indexed | 2024-12-22T21:48:22Z |
publishDate | 2019-01-01 |
publisher | IEEE |
record_format | Article |
series | IEEE Access |
spelling | doaj.art-b6cd5fdc96f84c1aa4823e319f7b317b2022-12-21T18:11:26ZengIEEEIEEE Access2169-35362019-01-01715345315346510.1109/ACCESS.2019.29483668876852An Automatic Localization Tool for Null Pointer ExceptionsJing Duan0Shujuan Jiang1https://orcid.org/0000-0003-0643-0565Qiao Yu2Kai Lu3Xu Zhang4Yiwen Yao5College of Computer and Information, Hohai University, Nanjing, ChinaSchool of Computer Science and Technology, China University of Mining and Technology, Xuzhou, ChinaSchool of Computer Science and Technology, Jiangsu Normal University, Xuzhou, ChinaSchool of Computer Science and Technology, China University of Mining and Technology, Xuzhou, ChinaSchool of Computer Science and Technology, China University of Mining and Technology, Xuzhou, ChinaSchool of Computer Science and Technology, China University of Mining and Technology, Xuzhou, ChinaNull pointer exceptions are common software faults, but they are dangerous and can cause a program to crash if they occur. In addition, it is hard to find them by simply running test cases. When a null pointer exception occurs, the stack trace stored by the Java runtime environment can help us to locate the cause of the exception. In this paper, firstly, we propose an automatically null pointer exception localization approach guided by stack trace, from the null pointer dereference to the null value assignment point. Secondly, an empirical study is designed to evaluate the effectiveness of the tool on eight open source projects. The experimental results show that the tool is effective in locating the null pointer exception.https://ieeexplore.ieee.org/document/8876852/Null pointer exceptionfault localizationstack trace |
spellingShingle | Jing Duan Shujuan Jiang Qiao Yu Kai Lu Xu Zhang Yiwen Yao An Automatic Localization Tool for Null Pointer Exceptions IEEE Access Null pointer exception fault localization stack trace |
title | An Automatic Localization Tool for Null Pointer Exceptions |
title_full | An Automatic Localization Tool for Null Pointer Exceptions |
title_fullStr | An Automatic Localization Tool for Null Pointer Exceptions |
title_full_unstemmed | An Automatic Localization Tool for Null Pointer Exceptions |
title_short | An Automatic Localization Tool for Null Pointer Exceptions |
title_sort | automatic localization tool for null pointer exceptions |
topic | Null pointer exception fault localization stack trace |
url | https://ieeexplore.ieee.org/document/8876852/ |
work_keys_str_mv | AT jingduan anautomaticlocalizationtoolfornullpointerexceptions AT shujuanjiang anautomaticlocalizationtoolfornullpointerexceptions AT qiaoyu anautomaticlocalizationtoolfornullpointerexceptions AT kailu anautomaticlocalizationtoolfornullpointerexceptions AT xuzhang anautomaticlocalizationtoolfornullpointerexceptions AT yiwenyao anautomaticlocalizationtoolfornullpointerexceptions AT jingduan automaticlocalizationtoolfornullpointerexceptions AT shujuanjiang automaticlocalizationtoolfornullpointerexceptions AT qiaoyu automaticlocalizationtoolfornullpointerexceptions AT kailu automaticlocalizationtoolfornullpointerexceptions AT xuzhang automaticlocalizationtoolfornullpointerexceptions AT yiwenyao automaticlocalizationtoolfornullpointerexceptions |