{"action":"created","issue":{"url":"https://api.github.com/repos/paypal/PayPal-Android-SDK/issues/166","labels_url":"https://api.github.com/repos/paypal/PayPal-Android-SDK/issues/166/labels{/name}","comments_url":"https://api.github.com/repos/paypal/PayPal-Android-SDK/issues/166/comments","events_url":"https://api.github.com/repos/paypal/PayPal-Android-SDK/issues/166/events","html_url":"https://github.com/paypal/PayPal-Android-SDK/issues/166","id":75651489,"number":166,"title":"NPE on read field","user":{"login":"nzakharchenko","id":5264819,"avatar_url":"https://avatars.githubusercontent.com/u/5264819?v=3","gravatar_id":"","url":"https://api.github.com/users/nzakharchenko","html_url":"https://github.com/nzakharchenko","followers_url":"https://api.github.com/users/nzakharchenko/followers","following_url":"https://api.github.com/users/nzakharchenko/following{/other_user}","gists_url":"https://api.github.com/users/nzakharchenko/gists{/gist_id}","starred_url":"https://api.github.com/users/nzakharchenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nzakharchenko/subscriptions","organizations_url":"https://api.github.com/users/nzakharchenko/orgs","repos_url":"https://api.github.com/users/nzakharchenko/repos","events_url":"https://api.github.com/users/nzakharchenko/events{/privacy}","received_events_url":"https://api.github.com/users/nzakharchenko/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-12T16:04:38Z","updated_at":"2015-05-12T21:44:10Z","closed_at":null,"body":"Hello!\r\n\r\nI'm currently using SDK version 2.8.7 and starting service and activity like this:\r\n```java\r\nfinal PayPalConfiguration PP_CONFIG = BuildConfig.DEBUG ? PP_CONFIG_SANDBOX : PP_CONFIG_RELEASE;\r\nPP_CONFIG.merchantName(getString(R.string.merchant_name)).languageOrLocale(!TextUtils.isEmpty(Locale.getDefault().getLanguage()) ? Locale.getDefault().getLanguage() : \"en\");\r\n\r\nIntent intent = new Intent(this, PayPalService.class).putExtra(PayPalService.EXTRA_PAYPAL_CONFIGURATION, PP_CONFIG);\r\nstartService(intent);\r\n\r\nIntent intent = new Intent(PaymentPayPalActivity.this, com.paypal.android.sdk.payments.PaymentActivity.class);\r\n\t        \r\n// send the same configuration for restart resiliency\r\n// fixing issue https://github.com/paypal/PayPal-Android-SDK/issues/117\r\nintent.putExtra(PayPalService.EXTRA_PAYPAL_CONFIGURATION, PP_CONFIG);\r\nintent.putExtra(com.paypal.android.sdk.payments.PaymentActivity.EXTRA_PAYMENT, payment);\r\nstartActivityForResult(intent, REQUEST_PAYPAL_PAYMENT);\r\n```\r\n\r\nBut in production application I've got such error:\r\n\r\n```\r\njava.lang.NullPointerException: Attempt to read from field 'java.lang.String com.paypal.android.sdk.payments.bz.h' on a null object reference\r\n\tat com.paypal.android.sdk.payments.PaymentConfirmActivity.g(Unknown Source)\r\n\tat com.paypal.android.sdk.payments.PaymentConfirmActivity.a(Unknown Source)\r\n\tat com.paypal.android.sdk.payments.ar.onClick(Unknown Source)\r\n\tat android.view.View.performClick(View.java:4785)\r\n\tat android.view.View$PerformClick.run(View.java:19869)\r\n\tat android.os.Handler.handleCallback(Handler.java:739)\r\n\tat android.os.Handler.dispatchMessage(Handler.java:95)\r\n\tat android.os.Looper.loop(Looper.java:155)\r\n\tat android.app.ActivityThread.main(ActivityThread.java:5696)\r\n\tat java.lang.reflect.Method.invoke(Native Method)\r\n\tat java.lang.reflect.Method.invoke(Method.java:372)\r\n\tat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1028)\r\n\tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:823)\r\n```\r\n\r\nI'm not able reproduce it right now, but maybe you have some ideas what's going wrong?\r\n\r\nAlso, I'm not sure if it is related issues, but I'm also getting errors like this:\r\n\r\n```\r\njava.lang.RuntimeException: Unable to bind to service com.paypal.android.sdk.payments.PayPalService@411a3d90 with Intent { cmp=de.flixbus.app/com.paypal.android.sdk.payments.PayPalService (has extras) }: java.lang.RuntimeException: Missing EXTRA_PAYPAL_CONFIGURATION. To avoid this error, set EXTRA_PAYPAL_CONFIGURATION in both PayPalService, and the initializing activity.\r\n\tat android.app.ActivityThread.handleBindService(ActivityThread.java:2568)\r\n\tat android.app.ActivityThread.access$1700(ActivityThread.java:141)\r\n\tat android.app.ActivityThread$H.handleMessage(ActivityThread.java:1321)\r\n\tat android.os.Handler.dispatchMessage(Handler.java:99)\r\n\tat android.os.Looper.loop(Looper.java:137)\r\n\tat android.app.ActivityThread.main(ActivityThread.java:5041)\r\n\tat java.lang.reflect.Method.invokeNative(Native Method)\r\n\tat java.lang.reflect.Method.invoke(Method.java:511)\r\n\tat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)\r\n\tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)\r\n\tat dalvik.system.NativeStart.main(Native Method)\r\n\r\n\r\njava.lang.RuntimeException: Unable to start service com.paypal.android.sdk.payments.PayPalService@4112eb98 with Intent { cmp=de.meinfernbus/com.paypal.android.sdk.payments.PayPalService }: java.lang.RuntimeException: Service extras required. Please see the docs.\r\n\tat android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2592)\r\n\tat android.app.ActivityThread.access$1900(ActivityThread.java:131)\r\n\tat android.app.ActivityThread$H.handleMessage(ActivityThread.java:1309)\r\n\tat android.os.Handler.dispatchMessage(Handler.java:99)\r\n\tat android.os.Looper.loop(Looper.java:137)\r\n\tat android.app.ActivityThread.main(ActivityThread.java:4831)\r\n\tat java.lang.reflect.Method.invokeNative(Native Method)\r\n\tat java.lang.reflect.Method.invoke(Method.java:535)\r\n\tat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)\r\n\tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)\r\n\tat dalvik.system.NativeStart.main(Native Method)\r\n```"},"comment":{"url":"https://api.github.com/repos/paypal/PayPal-Android-SDK/issues/comments/101430448","html_url":"https://github.com/paypal/PayPal-Android-SDK/issues/166#issuecomment-101430448","issue_url":"https://api.github.com/repos/paypal/PayPal-Android-SDK/issues/166","id":101430448,"user":{"login":"braebot","id":3358986,"avatar_url":"https://avatars.githubusercontent.com/u/3358986?v=3","gravatar_id":"","url":"https://api.github.com/users/braebot","html_url":"https://github.com/braebot","followers_url":"https://api.github.com/users/braebot/followers","following_url":"https://api.github.com/users/braebot/following{/other_user}","gists_url":"https://api.github.com/users/braebot/gists{/gist_id}","starred_url":"https://api.github.com/users/braebot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/braebot/subscriptions","organizations_url":"https://api.github.com/users/braebot/orgs","repos_url":"https://api.github.com/users/braebot/repos","events_url":"https://api.github.com/users/braebot/events{/privacy}","received_events_url":"https://api.github.com/users/braebot/received_events","type":"User","site_admin":false},"created_at":"2015-05-12T21:44:10Z","updated_at":"2015-05-12T21:44:10Z","body":"Thanks for reporting this issue!  \r\n1: do you experience the NPE issue on the latest version, 2.9.5?  If not, I recommend upgrading and trying again.  It looks to be a rare case where extras are not propagated consistently.  I'll make note to fix that in future releases.\r\n2. You shouldn't be seeing those other exceptions with your current config.  Perhaps you've already fixed it by providing the correct config?\r\n"}}