Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nullpointer exception when no target classes are found #6

Closed
n-a-sz opened this issue Mar 22, 2018 · 3 comments
Closed

Nullpointer exception when no target classes are found #6

n-a-sz opened this issue Mar 22, 2018 · 3 comments

Comments

@n-a-sz
Copy link

n-a-sz commented Mar 22, 2018

Characteristics

  • Issue Type: bug
  • Reproducibility: always
  • Severity: major
  • Tool/Service/Component: pitmp-maven-plugin 1.1.1
  • Execution Environment: Win10, maven 3.5.3 (also tested with maven 3.0.5)
  • Reporter: András Szabolcs Nagy

Description

I got a NullPointerException from PmpMojo.java at line 166. I assume the local variable moduleList is null. It can happen when no targetClass is provided and the condition at line 151 returns true. In this case the moduleList is not initialized hence the NPE.

It seems the else keyword (at line 160 without scope) could be removed. (I did this and it seems to work now).

Steps to reproduce

I have just followed the instructions on the main site, maybe I misconfigured the pom.xml somehow as I did provide the <targetClasses> configuration.

Cael35 pushed a commit that referenced this issue Apr 23, 2018
- Correct issues #6 and #9
- Add automatic tests (verify_pitmp.sh)
@Cael35
Copy link

Cael35 commented Apr 23, 2018

Hello @n-a-sz ,

This issue is fixed in the release 1.1.5 available in Maven Central.
Unfortunately there is still a bug: if you don't specify any targetClass, no mutation are found. I created an issue for it (#10).

@Cael35 Cael35 closed this as completed Apr 23, 2018
@n-a-sz
Copy link
Author

n-a-sz commented Apr 27, 2018

Thank you @CaelInria !

@Cael35
Copy link

Cael35 commented May 3, 2018

Szivesen @n-a-sz ! :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants