Uploaded image for project: 'Commons Math'
  1. Commons Math
  2. MATH-988

NPE when calling SubLine.intersection() with non-intersecting lines

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0, 3.1, 3.2, 3.1.1
    • 3.3
    • None
    • None

    Description

      When calling SubLine.intersection() with two lines that not intersect, then a NullPointerException is thrown in Line.toSubSpace(). This bug is in the twod and threed implementations.

      The attached patch fixes both implementations and adds the required test cases.

      Attachments

        1. SubLineIntersection.patch
          3 kB
          Andreas Huber

        Activity

          People

            Unassigned Unassigned
            andreashuber Andreas Huber
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: