Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Uncaught exception converting predicate containing aggregate expressions #7545

Closed
1ec5 opened this issue Dec 26, 2016 · 1 comment
Closed
Assignees
Labels
crash iOS Mapbox Maps SDK for iOS macOS Mapbox Maps SDK for macOS runtime styling
Milestone

Comments

@1ec5
Copy link
Contributor

1ec5 commented Dec 26, 2016

If you set MGLVectorStyleLayer.predicate to an NSPredicate with a format like a IN {1, 2}, {1, 2} CONTAINS a, or b BETWEEN {1, 2}, this exception is raised. -[NSExpression(MGLAdditions) mgl_filterValues] assumes that the aggregate array must contain values like strings and numbers directly, but clients of NSPredicate normally expect the elements to be NSExpressions.

/cc @frederoni

@1ec5 1ec5 added crash iOS Mapbox Maps SDK for iOS macOS Mapbox Maps SDK for macOS runtime styling labels Dec 26, 2016
@1ec5 1ec5 added this to the ios-v3.4.0 milestone Dec 26, 2016
@1ec5 1ec5 self-assigned this Dec 26, 2016
@1ec5
Copy link
Contributor Author

1ec5 commented Jan 4, 2017

Fixed in #7548 on the release-ios-v3.4.0 branch.

@1ec5 1ec5 closed this as completed Jan 4, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
crash iOS Mapbox Maps SDK for iOS macOS Mapbox Maps SDK for macOS runtime styling
Projects
None yet
Development

No branches or pull requests

1 participant