Skip to content

Fix issue if no positions in PhaseLine determineLabelPositions method.#19

Open
gbonnary wants to merge 1 commit intoNASAWorldWind:masterfrom
gbonnary:master
Open

Fix issue if no positions in PhaseLine determineLabelPositions method.#19
gbonnary wants to merge 1 commit intoNASAWorldWind:masterfrom
gbonnary:master

Conversation

@gbonnary
Copy link
Copy Markdown

MilStd2525GraphicFactory class can create graphics without positions:
pointer null exceptions happen when rendering PhaseLine.

@zglueck zglueck added the bug label Oct 31, 2016
protected void determineLabelPositions(DrawContext dc)
{
Iterator<? extends Position> iterator = this.path.getPositions().iterator();
Iterable<? extends Position> positions = this.path.getPositions();
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.

Will you remove the extra tab indentation here?

@zglueck
Copy link
Copy Markdown
Contributor

zglueck commented Dec 12, 2016

@gbonnary thanks for pointing this out, we were wondering if you spotted this behavior with any other graphics?

@gbonnary
Copy link
Copy Markdown
Author

Yes, I've found other issues with this behavior.

@wcmatthysen wcmatthysen mentioned this pull request Apr 5, 2019
@wcmatthysen
Copy link
Copy Markdown

wcmatthysen commented Apr 10, 2019

Hi @gbonnary. Do you have fixes for some of the other classes? I have added this as a new pull-request to the community-edition of WorldWind (located at: https://github.com/WorldWindEarth/WorldWindJava). The pull-request can be viewed at: WorldWindEarth#12. Would you help us out by opening pull-requests for some of the other issues that you encountered?

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

Labels

Development

Successfully merging this pull request may close these issues.

3 participants