cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vishwa Deepak (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (CB-9651) Issue in Cordova Camera Plugin
Date Thu, 24 Sep 2015 10:33:04 GMT

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

Vishwa Deepak edited comment on CB-9651 at 9/24/15 10:33 AM:
-------------------------------------------------------------

Hi Mickael 

This is not issue of memory because we are using Samsung S5 
So i dont think this that memory will be a conflict.
As my view we are getting CallbackContext as null as it is null the app is getting crashed??
Can we do any validation in Cameja.js or we can catch in CameraLauncher,java


was (Author: vishwa17):
Hi Mickael 

This is not issue of memory because we are using Samsung S5 and free usage is above 6 GB .
So i dont think this that memory will be a conflict.
As my view we are getting CallbackContext as null as it is null the app is getting crashed??
Can we do any validation in Cameja.js or we can catch in CameraLauncher,java

> Issue in Cordova Camera Plugin
> ------------------------------
>
>                 Key: CB-9651
>                 URL: https://issues.apache.org/jira/browse/CB-9651
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: , Plugin Battery Status, Plugin Camera, Plugin Contacts, Plugin
Device Orientation, Plugin Dialogs, Plugin File, Plugin Geolocation, Plugin Globalization,
Plugin InAppBrowser, Plugin Media, Plugin Media Capture, CordovaLib
>    Affects Versions: 5.0.0
>         Environment: Sencha Touch
>            Reporter: Vishwa Deepak
>             Fix For: 5.0.0
>
>
> Hi Team,
> Facing this issue: 
> Please can you help, the plugin of CORDOVA CAMERA the callbackContext is returning NULL
and the app get crash..
> Can you help us why this is happening in Android 5.0.0 and 4.4.2  as well as.. Can u
do something in codova camera plugin and some try catch where as null value come the app should
not crash.
> D/AndroidRuntime(14743): Shutting down VM
> E/AndroidRuntime(14743): FATAL EXCEPTION: main
> E/AndroidRuntime(14743): Process: com.nielsen.nic, PID: 14743
> E/AndroidRuntime(14743): java.lang.RuntimeException: Unable to resume activity {com.nielsen.nic/com.nielsen.nic.NIC}:
java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=33, result=-1,
data=null} to activity {com.nielsen.nic/com.nielsen.nic.NIC}: java.lang.NullPointerException:
Attempt to invoke virtual method 'java.lang.String android.net.Uri.toString()' on a null object
reference
> E/AndroidRuntime(14743): at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3346)
> E/AndroidRuntime(14743): at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3377)
> E/AndroidRuntime(14743): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2728)
> E/AndroidRuntime(14743): at android.app.ActivityThread.access$900(ActivityThread.java:172)
> E/AndroidRuntime(14743): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1422)
> E/AndroidRuntime(14743): at android.os.Handler.dispatchMessage(Handler.java:102)
> E/AndroidRuntime(14743): at android.os.Looper.loop(Looper.java:145)
> E/AndroidRuntime(14743): at android.app.ActivityThread.main(ActivityThread.java:5832)
> E/AndroidRuntime(14743): at java.lang.reflect.Method.invoke(Native Method)
> E/AndroidRuntime(14743): at java.lang.reflect.Method.invoke(Method.java:372)
> E/AndroidRuntime(14743): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1388)
> E/AndroidRuntime(14743): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1183)
> E/AndroidRuntime(14743): Caused by: java.lang.RuntimeException: Failure delivering result
ResultInfo{who=null, request=33, result=-1, data=null} to activity {com.nielsen.nic/com.nielsen.nic.NIC}:
java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.Uri.toString()'
on a null object reference
> E/AndroidRuntime(14743): at android.app.ActivityThread.deliverResults(ActivityThread.java:3974)
> E/AndroidRuntime(14743): at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3332)
> E/AndroidRuntime(14743): ... 11 more
> E/AndroidRuntime(14743): Caused by: java.lang.NullPointerException: Attempt to invoke
virtual method 'java.lang.String android.net.Uri.toString()' on a null object reference
> E/AndroidRuntime(14743): at org.apache.cordova.camera.CameraLauncher.processResultFromCamera(CameraLauncher.java:404)
> E/AndroidRuntime(14743): at org.apache.cordova.camera.CameraLauncher.onActivityResult(CameraLauncher.java:678)
> E/AndroidRuntime(14743): at org.apache.cordova.CordovaInterfaceImpl.onActivityResult(CordovaInterfaceImpl.java:120)
> E/AndroidRuntime(14743): at org.apache.cordova.CordovaActivity.onActivityResult(CordovaActivity.java:320)
> E/AndroidRuntime(14743): at android.app.Activity.dispatchActivityResult(Activity.java:6475)
> E/AndroidRuntime(14743): at android.app.ActivityThread.deliverResults(ActivityThread.java:3970)
> E/AndroidRuntime(14743): ... 12 more



--
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