JBehave
  1. JBehave
  2. JBEHAVE-946

Excludes can raise a NPE if value is empty in POM file

    Details

    • Type: Improvement Improvement
    • Status: Open Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.7.4
    • Fix Version/s: 4.0
    • Component/s: Core
    • Labels:
      None
    • Number of attachments :
      0

      Description

      JBehave Maven goals support the property "excludes".

      See: http://jbehave.org/reference/stable/maven-goals.html

      If "excludes" is used in the POM file and if it is empty, then a NPE occurs in AbstractScanner.java:327

      This class is called from: org.jbehave.core.io.StoryFinder.scan(StoryFinder.java:183)

      JBehave could be easier to configure concerning "excludes" if this would allow empty value. That would mean, that nothing is excluded if the value is empty. No need to cause a NPE because of this.

      I did not verify it, but I think a NPE is also raised when "includes" are empty. It would be better if no NPE is thrown. If the value is empty it can be interpreted as nothing is included or everything is included, whatever makes sense to you as a default.

        Activity

        There are no entries against this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Otto Diesel
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:

              Time Tracking

              Estimated:
              Original Estimate - 2 hours
              2h
              Remaining:
              Remaining Estimate - 2 hours
              2h
              Logged:
              Time Spent - Not Specified
              Not Specified