Bug #2693

crash on launch with new unified signing key functionality

Added by hans about 4 years ago. Updated about 4 years ago.

Status:ClosedStart date:12/03/2013
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:0.1 - "Kerplapp"
Component:

Description

Running a fresh install of Kerplapp gives me this on start:

12-03 11:24:28.270: E/AndroidRuntime(23194): FATAL EXCEPTION: main
12-03 11:24:28.270: E/AndroidRuntime(23194): java.lang.RuntimeException: Unable to create application net.binaryparadox.kerplapp.KerplappApplication: java.lang.NullPointerException
12-03 11:24:28.270: E/AndroidRuntime(23194):     at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4447)
12-03 11:24:28.270: E/AndroidRuntime(23194):     at android.app.ActivityThread.access$1300(ActivityThread.java:141)
12-03 11:24:28.270: E/AndroidRuntime(23194):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1316)
12-03 11:24:28.270: E/AndroidRuntime(23194):     at android.os.Handler.dispatchMessage(Handler.java:99)
12-03 11:24:28.270: E/AndroidRuntime(23194):     at android.os.Looper.loop(Looper.java:137)
12-03 11:24:28.270: E/AndroidRuntime(23194):     at android.app.ActivityThread.main(ActivityThread.java:5103)
12-03 11:24:28.270: E/AndroidRuntime(23194):     at java.lang.reflect.Method.invokeNative(Native Method)
12-03 11:24:28.270: E/AndroidRuntime(23194):     at java.lang.reflect.Method.invoke(Method.java:525)
12-03 11:24:28.270: E/AndroidRuntime(23194):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
12-03 11:24:28.270: E/AndroidRuntime(23194):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
12-03 11:24:28.270: E/AndroidRuntime(23194):     at dalvik.system.NativeStart.main(Native Method)
12-03 11:24:28.270: E/AndroidRuntime(23194): Caused by: java.lang.NullPointerException
12-03 11:24:28.270: E/AndroidRuntime(23194):     at net.binaryparadox.kerplapp.KerplappKeyStore.addToStore(KerplappKeyStore.java:134)
12-03 11:24:28.270: E/AndroidRuntime(23194):     at net.binaryparadox.kerplapp.KerplappKeyStore.<init>(KerplappKeyStore.java:76)
12-03 11:24:28.270: E/AndroidRuntime(23194):     at net.binaryparadox.kerplapp.KerplappApplication.onCreate(KerplappApplication.java:46)
12-03 11:24:28.270: E/AndroidRuntime(23194):     at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1007)
12-03 11:24:28.270: E/AndroidRuntime(23194):     at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4444)
12-03 11:24:28.270: E/AndroidRuntime(23194):     ... 10 more

Associated revisions

Revision 0629bba5
Added by pd0x about 4 years ago

Fix crash on launch with unified key signing.

commit af674d74828c115c37827f9963f7b5fc56bcb8f9 introduced a regression that
caused the app to crash on the first launch after install (when creating a brand
new BKS keystore). The KeyManagerFactory member variable needs to be initialized
before any calls to addToStore().

closes #2693

History

#1 Updated by pd0x about 4 years ago

  • Status changed from New to Closed

Applied in changeset kerplapp|commit:0629bba5f63bfc691646b57de8a12bfe8cbf8eb6.

Also available in: Atom PDF