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

Java findbugs - nullcheck of value previously dereferenced #102

Open
GoogleCodeExporter opened this issue Mar 16, 2015 · 1 comment
Open

Comments

@GoogleCodeExporter
Copy link

The code does not run cleanly though FindBugs because of some bugs:

In org/poly2tri/triangulation/delaunay/sweep/DTSweep.java at lines 634, 789, 
the 'if(ot == null)' checks are made after 'ot' is dereferenced. This condition 
can never be true because a NullPointerException would be thrown on the lines 
before.

Original issue reported on code.google.com by d22...@gmail.com on 21 Jan 2015 at 12:03

@GoogleCodeExporter
Copy link
Author

Yeah those two ot=null checks can be removed. I kept them just to be a reminder 
of where I had to add code if I wanted to include the filling of missing 
triangles during the constrained edge phase. Now the filling is done separately 
before the edge phase.

I should have commented out those ot=null tests when keeping them as a reminder.

Original comment by thahlen@gmail.com on 21 Jan 2015 at 1:21

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

No branches or pull requests

1 participant