{"action":"created","issue":{"url":"https://api.github.com/repos/open-keychain/open-keychain/issues/1358","labels_url":"https://api.github.com/repos/open-keychain/open-keychain/issues/1358/labels{/name}","comments_url":"https://api.github.com/repos/open-keychain/open-keychain/issues/1358/comments","events_url":"https://api.github.com/repos/open-keychain/open-keychain/issues/1358/events","html_url":"https://github.com/open-keychain/open-keychain/issues/1358","id":90247364,"number":1358,"title":"NullPointerException when trying to bind yubikey","user":{"login":"flokli","id":183879,"avatar_url":"https://avatars.githubusercontent.com/u/183879?v=3","gravatar_id":"","url":"https://api.github.com/users/flokli","html_url":"https://github.com/flokli","followers_url":"https://api.github.com/users/flokli/followers","following_url":"https://api.github.com/users/flokli/following{/other_user}","gists_url":"https://api.github.com/users/flokli/gists{/gist_id}","starred_url":"https://api.github.com/users/flokli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flokli/subscriptions","organizations_url":"https://api.github.com/users/flokli/orgs","repos_url":"https://api.github.com/users/flokli/repos","events_url":"https://api.github.com/users/flokli/events{/privacy}","received_events_url":"https://api.github.com/users/flokli/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-22T23:57:51Z","updated_at":"2015-06-23T00:01:59Z","closed_at":null,"body":"I added encryption and signing keys to my yubikey neo (on my PC) and now wanted to bind the yubikey to OpenKeychain.\r\n\r\nI selected \"Use Yubikey Neo\", tapped it on the back of the phone, it showed the correct public key. I clicked \"import\". After clicking on \"Bind key\", OpenKeychain crashes. Logcat below:\r\n\r\n```\r\nV/Zygote  (14634): Switching descriptor 33 to /dev/null\r\nV/Zygote  (14634): Switching descriptor 10 to /dev/null\r\nI/ActivityManager(  589): Start proc org.sufficientlysecure.keychain:sync for service org.sufficientlysecure.keychain/.service.ContactSyncAdapterService: pid=14634 uid=10184 gids={50184, 3003, 1028, 1015, 1006}\r\nI/Timeline(14541): Timeline: Activity_launch_request id:org.sufficientlysecure.keychain time:1104672\r\nI/ActivityManager(  589): START u0 {dat=content://org.sufficientlysecure.keychain.provider/key_rings/-8506638095145428961 cmp=org.sufficientlysecure.keychain/.ui.ViewKeyActivity (has extras)} from pid 14541\r\nD/NfcDispatcher( 1015): Set Foreground Dispatch\r\nW/InputMethodManagerService(  589): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@4291b6f8 attribute=null, token = android.os.BinderProxy@4240dcb0\r\nI/dalvikvm(14541): Could not find method android.app.ActivityOptions.makeSceneTransitionAnimation, referenced from method org.sufficientlysecure.keychain.ui.ViewKeyActivity.showQrCodeDialog\r\nW/dalvikvm(14541): VFY: unable to resolve static method 109: Landroid/app/ActivityOptions;.makeSceneTransitionAnimation (Landroid/app/Activity;Landroid/view/View;Ljava/lang/String;)Landroid/app/ActivityOptions;\r\nD/dalvikvm(14541): VFY: replacing opcode 0x71 at 0x0012\r\nD/ActivityThread(14634): handleBindApplication:org.sufficientlysecure.keychain:sync\r\nD/ActivityThread(14634): setTargetHeapUtilization:0.75\r\nD/ActivityThread(14634): setTargetHeapMinFree:2097152\r\nI/ViewUtils(14541): app:theme is now deprecated. Please move to using android:theme instead.\r\nI/ViewUtils(14541): app:theme is now deprecated. Please move to using android:theme instead.\r\nI/dalvikvm(14541): Could not find method android.nfc.NfcAdapter.invokeBeam, referenced from method org.sufficientlysecure.keychain.util.NfcHelper.invokeNfcBeam\r\nW/dalvikvm(14541): VFY: unable to resolve virtual method 1252: Landroid/nfc/NfcAdapter;.invokeBeam (Landroid/app/Activity;)Z\r\nD/dalvikvm(14541): VFY: replacing opcode 0x6e at 0x006d\r\nI/dalvikvm(14541): Could not find method android.view.View.getElevation, referenced from method com.nispok.snackbar.Snackbar.showInternal\r\nW/dalvikvm(14541): VFY: unable to resolve virtual method 15151: Landroid/view/View;.getElevation ()F\r\nD/dalvikvm(14541): VFY: replacing opcode 0x6e at 0x0014\r\nD/NfcDispatcher( 1015): Set Foreground Dispatch\r\nI/ActivityManager(  589): Displayed org.sufficientlysecure.keychain/.ui.ViewKeyActivity: +310ms\r\nD/ALSADevice(  229): standby: handle 0xb8adeb10 h 0x0\r\nD/alsa_ucm(  229): snd_use_case_set(): uc_mgr 0xb8aba3a0 identifier _verb value Inactive\r\nD/alsa_ucm(  229): Set mixer controls for HiFi Lowlatency enable 0\r\nD/alsa_ucm(  229): Setting mixer control: SLIMBUS_0_RX Audio Mixer MultiMedia5, value: 0\r\nD/alsa_ucm(  229): snd_use_case_set(): uc_mgr 0xb8aba3a0 identifier _disdev value Speaker\r\nD/alsa_ucm(  229): Set mixer controls for Speaker enable 0\r\nD/alsa_ucm(  229): Setting mixer control: RX5 MIX1 INP1, value: ZERO\r\nD/alsa_ucm(  229): Setting mixer control: RX5 MIX1 INP2, value: ZERO\r\nD/alsa_ucm(  229): Setting mixer control: LINEOUT2 Volume, value: 0\r\nD/alsa_ucm(  229): Setting mixer control: LINEOUT4 Volume, value: 0\r\nD/alsa_ucm(  229): Setting mixer control: RX5 Digital Volume, value: 0\r\nD/AudioUsbALSA(  229): exitPlaybackThread, mproxypfdPlayback: -1\r\nD/AudioUsbALSA(  229): closeDevice handle 0x0\r\nD/AudioUsbALSA(  229): closeDevice handle 0x0\r\nI/Timeline(14541): Timeline: Activity_idle id: android.os.BinderProxy@41d4bf38 time:1105157\r\nI/Timeline(  589): Timeline: Activity_windows_visible id: ActivityRecord{42992690 u0 org.sufficientlysecure.keychain/.ui.ViewKeyActivity t26} time:1105321\r\nW/dalvikvm(14541): threadid=19: thread exiting with uncaught exception (group=0x41749ce0)\r\nE/AndroidRuntime(14541): FATAL EXCEPTION: IntentService[KeychainIntentService]\r\nE/AndroidRuntime(14541): Process: org.sufficientlysecure.keychain, PID: 14541\r\nE/AndroidRuntime(14541): java.lang.NullPointerException\r\nE/AndroidRuntime(14541):        at org.spongycastle.openpgp.PGPSecretKeyRing.insertSecretKey(PGPSecretKeyRing.java:337)\r\nE/AndroidRuntime(14541):        at org.sufficientlysecure.keychain.pgp.CanonicalizedPublicKeyRing.createDivertSecretRing(CanonicalizedPublicKeyRing.java:117)\r\nE/AndroidRuntime(14541):        at org.sufficientlysecure.keychain.operations.PromoteKeyOperation.execute(PromoteKeyOperation.java:87)\r\nE/AndroidRuntime(14541):        at org.sufficientlysecure.keychain.service.KeychainIntentService.onHandleIntent(KeychainIntentService.java:484)\r\nE/AndroidRuntime(14541):        at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65)\r\nE/AndroidRuntime(14541):        at android.os.Handler.dispatchMessage(Handler.java:102)\r\nE/AndroidRuntime(14541):        at android.os.Looper.loop(Looper.java:136)\r\nE/AndroidRuntime(14541):        at android.os.HandlerThread.run(HandlerThread.java:61)\r\nW/ActivityManager(  589):   Force finishing activity org.sufficientlysecure.keychain/.ui.ViewKeyActivity\r\nD/NfcDispatcher( 1015): Set Foreground Dispatch\r\nI/Timeline( 1030): Timeline: Activity_idle id: android.os.BinderProxy@41ba9208 time:1107328\r\nI/Timeline(  589): Timeline: Activity_windows_visible id: ActivityRecord{4200c3c8 u0 com.cyanogenmod.trebuchet/org.cyanogenmod.trebuchet.CustomHomeLauncher t1} time:1107746\r\n```"},"comment":{"url":"https://api.github.com/repos/open-keychain/open-keychain/issues/comments/114308377","html_url":"https://github.com/open-keychain/open-keychain/issues/1358#issuecomment-114308377","issue_url":"https://api.github.com/repos/open-keychain/open-keychain/issues/1358","id":114308377,"user":{"login":"flokli","id":183879,"avatar_url":"https://avatars.githubusercontent.com/u/183879?v=3","gravatar_id":"","url":"https://api.github.com/users/flokli","html_url":"https://github.com/flokli","followers_url":"https://api.github.com/users/flokli/followers","following_url":"https://api.github.com/users/flokli/following{/other_user}","gists_url":"https://api.github.com/users/flokli/gists{/gist_id}","starred_url":"https://api.github.com/users/flokli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flokli/subscriptions","organizations_url":"https://api.github.com/users/flokli/orgs","repos_url":"https://api.github.com/users/flokli/repos","events_url":"https://api.github.com/users/flokli/events{/privacy}","received_events_url":"https://api.github.com/users/flokli/received_events","type":"User","site_admin":false},"created_at":"2015-06-23T00:01:59Z","updated_at":"2015-06-23T00:01:59Z","body":"yes, you're right. didn't find this one. sorry!"}}