Possible NullPointerException in TopologyValidationError
Brought to you by:
dr_jts
JTS 1.7: The (currently not used) constructor
TopologyValidationError(int errorType)
leads to a NullPointerException, because ist delegates
with
this(errorType, null);
to
public TopologyValidationError(int errorType,
Coordinate pt)
{
this.errorType = errorType;
this.pt = (Coordinate) pt.clone();
}
where clone() will be invoked on the null Coordinate
pt.
Suggested fix: Remove the constructor, since it is not
used anyway.
Logged In: YES
user_id=1158312
Good catch, Markus - thanks.
Logged In: YES
user_id=680457
This Bug seems to be fixed in JTS 1.7.1. It should be
closed, shouldn't it?
Logged In: YES
user_id=1158312
Fixed in 1.7.1