Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-7361] iOS: Titanium.Geolocation: getCurrentPosition and getCurrentHeading null callback crash

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-02-14T23:29:00.000+0000
Affected Version/sRelease 1.8.0.1, Release 1.8.1
Fix Version/sSprint 2012-03, Release 2.0.0, Release 1.8.2
ComponentsiOS
Labelsmodule_geolocation, parity, qe-ios012312, qe-testadded
ReporterDustin Hyde
AssigneeStephen Tramer
Created2012-01-24T14:41:56.000+0000
Updated2012-03-03T23:12:09.000+0000

Description

When Ti.Geolocation getCurrentPosition or getCurrentHeading are called without a callback (i.e., Ti.Geolocation.getCurrentHeading()), app crashes. Logs Attached. On Android, there is only a runtime error and no crash. Steps to Reproduce: 1. Run code, testing both functions:
// Ti.Geolocation.getCurrentPosition();
Ti.Geolocation.getCurrentHeading();
Expected Result: Runtime Error. Actual Result: Crash.

Attachments

FileDateSize
geolocation null callback ios console log.txt2012-01-24T14:41:56.000+000010764
geolocation null callback ios crash log.crash2012-01-24T14:41:56.000+000023505

Comments

  1. Dustin Hyde 2012-02-06

    Closing as Fixed. SDK: 1.9.0.v20120203163134 Studio: 1.0.8.201201262211 OS: Lion Devices Tested: iPhone Simulator 5.0, iPad 4.3, iPhone 5.0.1

JSON Source