Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1115] SelectAnnotation causes a crash if no args are passed

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:55:15.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.4.0
ComponentsiOS
Labelsios, iphone, mapview
ReporterBlain Hamon
AssigneeReggie Seagraves
Created2011-04-15T02:44:24.000+0000
Updated2011-04-17T01:55:15.000+0000

Description

We ensure UI thread before ensuring a single argument, so it throws an uncaught exception.

Also, wouldn't selectAnnotation(null) be valid to deselect all annotations?

Comments

  1. Stephen Tramer 2011-04-15

    This will be a quick fix. Claiming it.

  2. Jeff Haynie 2011-04-15

    (from [ea1f5ba641014425875cc729553ac469cc5120e8]) Closes #1115: Selecting 'null' annotation now deselects all annotations. http://github.com/appcelerator/titanium_mobile/commit/ea1f5ba641014425875cc729553ac469cc5120e8"> http://github.com/appcelerator/titanium_mobile/commit/ea1f5ba641014...

JSON Source