Skip to content

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

Merged
cammace merged 1 commit into
masterfrom
cam-632
Dec 13, 2017
Merged

add check and test for pointOnLine list less than 2#689
cammace merged 1 commit into
masterfrom
cam-632

Conversation

@cammace

@cammace cammace commented Dec 11, 2017

Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown
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