cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-10691) Geolocation Permission causes crash when called before onDeviceReady?
Date Tue, 01 Mar 2016 19:21:18 GMT

    [ https://issues.apache.org/jira/browse/CB-10691?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15174241#comment-15174241
] 

ASF subversion and git services commented on CB-10691:
------------------------------------------------------

Commit 7c57ae9c0470905124c0d5a1430bf09f3a46f1cc in cordova-plugin-geolocation's branch refs/heads/master
from [~bowserj]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-plugin-geolocation.git;h=7c57ae9 ]

CB-10691: Check the context to avoid null errors


> Geolocation Permission causes crash when called before onDeviceReady? 
> ----------------------------------------------------------------------
>
>                 Key: CB-10691
>                 URL: https://issues.apache.org/jira/browse/CB-10691
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android, Plugin Geolocation
>            Reporter: Joe Bowser
>            Assignee: Joe Bowser
>            Priority: Minor
>              Labels: triaged
>
> The issue is when you don't use Cordova and try and use Geolocation with the Geolocation
plugin installed.  It will correctly request the permission, but since the Context to do the
callback is null, it will crash.  I added a null check, and that seems to fix it.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message