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

fileExcludePattern causing null pointer exception #121

Closed
Glaikun opened this issue Apr 8, 2015 · 0 comments
Closed

fileExcludePattern causing null pointer exception #121

Glaikun opened this issue Apr 8, 2015 · 0 comments

Comments

@Glaikun
Copy link

Glaikun commented Apr 8, 2015

Hello,

java.lang.NullPointerException at org.apache.tools.ant.DirectoryScanner.normalizePattern(DirectoryScanner.java:797) at org.apache.tools.ant.DirectoryScanner.setExcludes(DirectoryScanner.java:751) at net.masterthought.jenkins.CucumberReportPublisher.findJsonFiles(CucumberReportPublisher.java:59) at net.masterthought.jenkins.CucumberReportPublisher.perform(CucumberReportPublisher.java:97) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)

Currently experiencing the above error in version 0.0.24
looks like it is caused by fileExcludePattern in CucumberReportPublisher.java.

For fileIncludePattern this works due to being default when value is null or empty.
For fileExcludePattern this goes onto - scanner.setExcludes(new String[]{fileExcludePattern});
regardless of value.

I can fix this if this is easier.
Cheers,
Andrew

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

1 participant