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

NullPointerException on transform() when using CoordinateReferenceSystem.CS_GEO #56

Open
oshai opened this issue Jan 30, 2020 · 0 comments

Comments

@oshai
Copy link

oshai commented Jan 30, 2020

Hi,
Were trying to upgrade to this library from lib:proj4j:0.1.0 due to a bug we found that was fixed here.

We have code that transforms from EPSID:3857 to 4326by using CoordinateReferenceSystem.CS_GEO as destination.

However, it seems that in such scenario the code throws NPE on this line, because for CS_GEO projection is null.

I saw that the original code has some TODO's:

//TODO: adjust src Prime Meridian if specified
//TODO: adjust target Prime Meridian if specified

And I suspect that when fixing this TODO there is a missing null check (check if projection is null).

Am I correct? Is it possible to fix that? Should I submit a PR?

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

No branches or pull requests

1 participant