Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add check and test for pointOnLine list less than 2 #689

Merged
merged 1 commit into from
Dec 13, 2017
Merged

Conversation

cammace
Copy link
Contributor

@cammace cammace commented Dec 11, 2017

I've also added a checkNotNull so we can use it throughout the SDKs.

@NonNull
public static LineString lineSlice(@NonNull Point startPt, @NonNull Point stopPt,
@NonNull Feature line) {
checkNotNull(line.geometry(), "Feature.geometry() == null");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can line.geometry().getType() be null?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Feature geometry can be nullable but if the geometry isn't null, the type will never be null.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants