{"action":"created","issue":{"url":"https://api.github.com/repos/j3k0/cordova-plugin-purchase/issues/633","repository_url":"https://api.github.com/repos/j3k0/cordova-plugin-purchase","labels_url":"https://api.github.com/repos/j3k0/cordova-plugin-purchase/issues/633/labels{/name}","comments_url":"https://api.github.com/repos/j3k0/cordova-plugin-purchase/issues/633/comments","events_url":"https://api.github.com/repos/j3k0/cordova-plugin-purchase/issues/633/events","html_url":"https://github.com/j3k0/cordova-plugin-purchase/issues/633","id":263633506,"node_id":"MDU6SXNzdWUyNjM2MzM1MDY=","number":633,"title":"[ANDROID] Fatal Exception and app crashes on order","user":{"login":"dharaneesh","id":751713,"node_id":"MDQ6VXNlcjc1MTcxMw==","avatar_url":"https://avatars0.githubusercontent.com/u/751713?v=4","gravatar_id":"","url":"https://api.github.com/users/dharaneesh","html_url":"https://github.com/dharaneesh","followers_url":"https://api.github.com/users/dharaneesh/followers","following_url":"https://api.github.com/users/dharaneesh/following{/other_user}","gists_url":"https://api.github.com/users/dharaneesh/gists{/gist_id}","starred_url":"https://api.github.com/users/dharaneesh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dharaneesh/subscriptions","organizations_url":"https://api.github.com/users/dharaneesh/orgs","repos_url":"https://api.github.com/users/dharaneesh/repos","events_url":"https://api.github.com/users/dharaneesh/events{/privacy}","received_events_url":"https://api.github.com/users/dharaneesh/received_events","type":"User","site_admin":false},"labels":[{"id":383830728,"node_id":"MDU6TGFiZWwzODM4MzA3Mjg=","url":"https://api.github.com/repos/j3k0/cordova-plugin-purchase/labels/Closed","name":"Closed","color":"ededed","default":false},{"id":731597263,"node_id":"MDU6TGFiZWw3MzE1OTcyNjM=","url":"https://api.github.com/repos/j3k0/cordova-plugin-purchase/labels/Expired%20through%20inactivity","name":"Expired through inactivity","color":"9b0929","default":false},{"id":722483735,"node_id":"MDU6TGFiZWw3MjI0ODM3MzU=","url":"https://api.github.com/repos/j3k0/cordova-plugin-purchase/labels/wait%20for%20more%20information","name":"wait for more information","color":"edc709","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-10-07T10:55:13Z","updated_at":"2018-07-23T15:58:30Z","closed_at":"2017-10-26T10:27:47Z","author_association":"NONE","body":"### Error INFO\r\n```\r\nFatal Exception: java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=10001, result=0, data=Intent { (has extras) }} to activity {com.xxx.xxx/com.xxx.xxx.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean com.smartmobilesoftware.util.IabHelper.handleActivityResult(int, int, android.content.Intent)' on a null object reference\r\n       at android.app.ActivityThread.deliverResults(ActivityThread.java:3720)\r\n       at android.app.ActivityThread.handleSendResult(ActivityThread.java:3763)\r\n       at android.app.ActivityThread.-wrap16(ActivityThread.java)\r\n       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1403)\r\n       at android.os.Handler.dispatchMessage(Handler.java:102)\r\n       at android.os.Looper.loop(Looper.java:148)\r\n       at android.app.ActivityThread.main(ActivityThread.java:5443)\r\n       at java.lang.reflect.Method.invoke(Method.java)\r\n       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:728)\r\n       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)\r\nCaused by java.lang.NullPointerException: Attempt to invoke virtual method 'boolean com.smartmobilesoftware.util.IabHelper.handleActivityResult(int, int, android.content.Intent)' on a null object reference\r\n       at com.smartmobilesoftware.inappbilling.InAppBillingPlugin.onActivityResult(InAppBillingPlugin.java:453)\r\n       at org.apache.cordova.CordovaInterfaceImpl.onActivityResult(CordovaInterfaceImpl.java:152)\r\n       at org.apache.cordova.CordovaActivity.onActivityResult(CordovaActivity.java:358)\r\n       at android.app.Activity.dispatchActivityResult(Activity.java:6442)\r\n       at android.app.ActivityThread.deliverResults(ActivityThread.java:3716)\r\n       at android.app.ActivityThread.handleSendResult(ActivityThread.java:3763)\r\n       at android.app.ActivityThread.-wrap16(ActivityThread.java)\r\n       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1403)\r\n       at android.os.Handler.dispatchMessage(Handler.java:102)\r\n       at android.os.Looper.loop(Looper.java:148)\r\n       at android.app.ActivityThread.main(ActivityThread.java:5443)\r\n       at java.lang.reflect.Method.invoke(Method.java)\r\n       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:728)\r\n       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)\r\n```\r\n\r\nCordova version: 7.1.0\r\nCordova-Android  6.3.0\r\nDevice: Android 6.0\r\nPlugin Version: 7.0.2\r\n\r\n### Steps to reproduce\r\nOn buy product invoking the below methods and on confirm , the payment get successful but app crashes.\r\n```javascript\r\nstore.order(product_id);\r\nstore.when(product_id).approved(function (product) {});\r\n```"},"comment":{"url":"https://api.github.com/repos/j3k0/cordova-plugin-purchase/issues/comments/407108935","html_url":"https://github.com/j3k0/cordova-plugin-purchase/issues/633#issuecomment-407108935","issue_url":"https://api.github.com/repos/j3k0/cordova-plugin-purchase/issues/633","id":407108935,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNzEwODkzNQ==","user":{"login":"Dexus","id":1674289,"node_id":"MDQ6VXNlcjE2NzQyODk=","avatar_url":"https://avatars2.githubusercontent.com/u/1674289?v=4","gravatar_id":"","url":"https://api.github.com/users/Dexus","html_url":"https://github.com/Dexus","followers_url":"https://api.github.com/users/Dexus/followers","following_url":"https://api.github.com/users/Dexus/following{/other_user}","gists_url":"https://api.github.com/users/Dexus/gists{/gist_id}","starred_url":"https://api.github.com/users/Dexus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dexus/subscriptions","organizations_url":"https://api.github.com/users/Dexus/orgs","repos_url":"https://api.github.com/users/Dexus/repos","events_url":"https://api.github.com/users/Dexus/events{/privacy}","received_events_url":"https://api.github.com/users/Dexus/received_events","type":"User","site_admin":false},"created_at":"2018-07-23T15:58:30Z","updated_at":"2018-07-23T15:58:30Z","author_association":"COLLABORATOR","body":"This should be fixed with #713 "}}
{"actor":{"display_login":"Dexus"}}