[ https://issues.apache.org/jira/browse/MATH-1123?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13999795#comment-13999795 ]
Labrosse Aurélien commented on MATH-1123: ----------------------------------------- Patch : ### Eclipse Workspace Patch 1.0 #P com.pollentech.maths.stats Index: apacheMaths/src/main/java/org/apache/commons/math3/geometry/partitioning/BSPTree.java =================================================================== --- apacheMaths/src/main/java/org/apache/commons/math3/geometry/partitioning/BSPTree.java (revision 1595194) +++ apacheMaths/src/main/java/org/apache/commons/math3/geometry/partitioning/BSPTree.java (working copy) @@ -300,6 +300,9 @@ } else { s = s.split(tree.parent.cut.getHyperplane()).getMinus(); } + if (s == null){ + return s; + } } return s; } > NPE in BSPTree#fitToCell() > -------------------------- > > Key: MATH-1123 > URL: https://issues.apache.org/jira/browse/MATH-1123 > Project: Commons Math > Issue Type: Bug > Affects Versions: 3.3 > Environment: Win32_64 > Reporter: Labrosse Aurélien > > Hello, > I faced a NPE using BSPTree#fitToCell() from the SVN trunk. I fixed the > problem using a small patch I will attach to the ticket. -- This message was sent by Atlassian JIRA (v6.2#6252)