Closed wcmatthysen closed 5 years ago
Ok, looks like the build is breaking because Travis can't properly install Oracle JDK 11.
My first thought is that GDALUtils should also be changed to avoid a long search through /usr/lib in the first place. No one will want to wait that long on a regular basis. So probably the search path for gdalplugins/gdal-data for Linux should change "/usr/lib" to "/usr/lib/gdalplugins".
Very nice. Good to go.
Description of the Change
The
Globe
that is provided to theOnSurfacePositionAnimator's
constructor could, in some situations, be null. This is especially true during startup when theView.goTo()
method is called and theView.getGlobe()
method returns null. As noted in the Javadocs,View.getGlobe()
returns null if called before the first invocation ofView.apply()
. So then, instead of getting theGlobe
, and passing it on, theOrbitView
itself is now passed along as constructor argument where theOnSurfacePositionAnimator
can get theGlobe
, check if it is null or not and based on this determine whether it wants to try and get theendElevation
at that point in time. If this fix is not done, theOnSurfacePositionAnimator
could get stuck with a nullGlobe
and will cause the entire application to break withNullPointerExceptions
being printed out continually.Why Should This Be In Core?
If this bugfix is not in, you can potentially end up with a broken Globe at startup.
Benefits
Stability improvements.
Potential Drawbacks
None
Applicable Issues
Issue #55