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

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

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0, 3.1, 3.2, 3.1.1
    • Fix Version/s: 3.3
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: