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

Constructor of PolyhedronsSet throws NullPointerException

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.2
    • Fix Version/s: 3.3
    • Labels:
      None
    • Environment:

      Mac OS 10.9 with Java 6, 7

      Description

      The following statement throws a NullPointerException:
      new org.apache.commons.math3.geometry.euclidean.threed.PolyhedronsSet(0.0d, 0.0d, 0.0d, 0.0d, 0.0d, 0.0d);

      I found that other numbers also produce that effect. The stack trace:
      java.lang.NullPointerException
      at org.apache.commons.math3.geometry.partitioning.BSPTree.fitToCell(BSPTree.java:297)
      at org.apache.commons.math3.geometry.partitioning.BSPTree.insertCut(BSPTree.java:155)
      at org.apache.commons.math3.geometry.partitioning.RegionFactory.buildConvex(RegionFactory.java:55)
      at org.apache.commons.math3.geometry.euclidean.threed.PolyhedronsSet.buildBoundary(PolyhedronsSet.java:119)
      at org.apache.commons.math3.geometry.euclidean.threed.PolyhedronsSet.<init>(PolyhedronsSet.java:97)

        Attachments

        1. Report1.java
          0.2 kB
          Cyrille Artho
        2. Report1a.java
          0.2 kB
          Cyrille Artho

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Telcontar Cyrille Artho
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: