Bug #2999
kerplapp fresh install crashes on start, can't get key
Status: | Closed | Start date: | 02/24/2014 | |
---|---|---|---|---|
Priority: | Immediate | Due date: | ||
Assignee: | pd0x | % Done: | 0% | |
Category: | - | |||
Target version: | improved security/usability | |||
Component: |
Description
17550 AndroidRuntime E FATAL EXCEPTION: main 17550 AndroidRuntime E java.lang.RuntimeException: Unable to resume activity {net.binaryparadox.kerplapp/net.binaryparadox.kerplapp.KerplappActivity}: java.lang.NullPointerException 17550 AndroidRuntime E at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2866) 17550 AndroidRuntime E at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2895) 17550 AndroidRuntime E at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2359) 17550 AndroidRuntime E at android.app.ActivityThread.access$600(ActivityThread.java:150) 17550 AndroidRuntime E at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1244) 17550 AndroidRuntime E at android.os.Handler.dispatchMessage(Handler.java:99) 17550 AndroidRuntime E at android.os.Looper.loop(Looper.java:137) 17550 AndroidRuntime E at android.app.ActivityThread.main(ActivityThread.java:5193) 17550 AndroidRuntime E at java.lang.reflect.Method.invokeNative(Native Method) 17550 AndroidRuntime E at java.lang.reflect.Method.invoke(Method.java:511) 17550 AndroidRuntime E at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:795) 17550 AndroidRuntime E at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:562) 17550 AndroidRuntime E at dalvik.system.NativeStart.main(Native Method) 17550 AndroidRuntime E Caused by: java.lang.NullPointerException 17550 AndroidRuntime E at net.binaryparadox.kerplapp.KerplappKeyStore.generateSelfSignedCertChain(KerplappKeyStore.java:260) 17550 AndroidRuntime E at net.binaryparadox.kerplapp.KerplappKeyStore.setupHTTPSCertificate(KerplappKeyStore.java:127) 17550 AndroidRuntime E at net.binaryparadox.kerplapp.KerplappActivity.setIpAddressFromWifi(KerplappActivity.java:254) 17550 AndroidRuntime E at net.binaryparadox.kerplapp.KerplappActivity.onResume(KerplappActivity.java:89) 17550 AndroidRuntime E at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1185) 17550 AndroidRuntime E at android.app.Activity.performResume(Activity.java:5182) 17550 AndroidRuntime E at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2856) 17550 AndroidRuntime E ... 12 more
Associated revisions
Populate INDEX_CERT_ALIAS keystore slot when null.
In some cases it may be possible that a keystore file is present on disk
but does not have a keypair & self signed certificate stored in the
INDEX_CERT_ALIAS slot. Prior to this commit this would result in the
crash described in Bug #2999.
Instead of only generating the INDEX_CERT_ALIAS cert/keypair when the
keystore is first created we now separate keystore creation
& INDEX_CERT_ALIAS population so that it happens as required with loaded
keystores as well as newly created keystores.
Fixes #2999