-
Notifications
You must be signed in to change notification settings - Fork 1
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
Added handling for null geometry field #265
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thinking about this some more. The actual error is coming from one of the components in the Peripleo dependency. Is this something we should handle in the LocationMarker component instead?
I believe that with the update to the |
Closing (this is an older version of PR #269 ). |
In this PR
Improves the error handling of the
PlaceMarker
component to simply returnnull
rather than throw page-breaking errors when the object fetched from Core Data has no value in thegeometry
field, addressing Issue #258 .Notes
For now the simplest seemed to be to just add this case to the check for the existence of overall
place
data. The behavior seems to be that since thePlaceMarker
component returnsnull
, the map simply renders as a world atlas with no place highlighted, which seems like reasonable default behavior to me but obviously could be modified further if desired.