jianlinwei / connectbot

Automatically exported from code.google.com/p/connectbot
Apache License 2.0
0 stars 0 forks source link

Cannot import ssh key (NullPointerException) #580

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Copy ~/.ssh/id_rsa from your computer to your sdcard
2. Try to import this key

Problem parsing imported private key
java.lang.NullPointerException
        at org.connectbot.bean.PubkeyBean.getValues(PubkeyBean.java:213)
        at org.connectbot.util.PubkeyDatabase.savePubkey(PubkeyDatabase.java:311)
        at org.connectbot.PubkeyListActivity.readKeyFromFile(PubkeyListActivity.java:562)
        at org.connectbot.PubkeyListActivity.onActivityResult(PubkeyListActivity.java:496)
        at android.app.Activity.dispatchActivityResult(Activity.java:4649)
        at android.app.ActivityThread.deliverResults(ActivityThread.java:2972)
        at android.app.ActivityThread.handleSendResult(ActivityThread.java:3019)
        at android.app.ActivityThread.access100(ActivityThread.java:122)
        at android.app.ActivityThread.handleMessage(ActivityThread.java:1176)
        at android.os.Handler.dispatchMessage(Handler.java:99)
        at android.os.Looper.loop(Looper.java:137)
        at android.app.ActivityThread.main(ActivityThread.java:4340)
        at java.lang.reflect.Method.invokeNative(Native Method)
        at java.lang.reflect.Method.invoke(Method.java:511)
        at com.android.internal.os.ZygoteInit.run(ZygoteInit.java:784)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
        at dalvik.system.NativeStart.main(Native Method)

Version:
- from your generated apk: ConnectBot-git-master-2011-12-19_18-30-54.apk
- from git current master

With ConnectBot-svn-r512-all.apk (the old version I had), it works.

Original issue reported on code.google.com by romain.v...@gmail.com on 25 May 2012 at 10:06