Skip to content

Wrap marker setIcon execute in try/catch to avoid crash in host app#529

Merged
hirbod merged 1 commit intomapsplugin:masterfrom
webprofusion-chrisc:master
Aug 30, 2015
Merged

Wrap marker setIcon execute in try/catch to avoid crash in host app#529
hirbod merged 1 commit intomapsplugin:masterfrom
webprofusion-chrisc:master

Conversation

@webprofusion-chrisc
Copy link
Contributor

Markers may be invalidated and bitmaps disposed after the initial marker has been created, this can result in a fatal IllegalArgumentException. The exception can cause the host cordova app to crash therefore catching it (and warning via Log) is necessary.

Markers may be invalidated and bitmaps disposed after the initial marker has been created, this can result in a fatal IllegalArgumentException. The exception can cause the host cordova app to crash therefore catching it (and warning via Log) is necessary.
@hirbod
Copy link
Contributor

hirbod commented Jul 9, 2015

Very good. @wf9a5m75 I'd like to merge this one here.

hirbod pushed a commit that referenced this pull request Aug 30, 2015
Wrap marker setIcon execute in try/catch to avoid crash in host app
@hirbod hirbod merged commit 2d8bd04 into mapsplugin:master Aug 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants