{"action":"created","issue":{"url":"https://api.github.com/repos/ringcaptcha/ringcaptcha-android/issues/1","repository_url":"https://api.github.com/repos/ringcaptcha/ringcaptcha-android","labels_url":"https://api.github.com/repos/ringcaptcha/ringcaptcha-android/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/ringcaptcha/ringcaptcha-android/issues/1/comments","events_url":"https://api.github.com/repos/ringcaptcha/ringcaptcha-android/issues/1/events","html_url":"https://github.com/ringcaptcha/ringcaptcha-android/issues/1","id":116747131,"number":1,"title":"NullPointerException: Attempt to invoke virtual method 'void android.support.v7.app.ActionBar.setDisplayHomeAsUpEnabled(boolean)' on a null object reference","user":{"login":"adamvarhegyi","id":11267706,"avatar_url":"https://avatars.githubusercontent.com/u/11267706?v=3","gravatar_id":"","url":"https://api.github.com/users/adamvarhegyi","html_url":"https://github.com/adamvarhegyi","followers_url":"https://api.github.com/users/adamvarhegyi/followers","following_url":"https://api.github.com/users/adamvarhegyi/following{/other_user}","gists_url":"https://api.github.com/users/adamvarhegyi/gists{/gist_id}","starred_url":"https://api.github.com/users/adamvarhegyi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamvarhegyi/subscriptions","organizations_url":"https://api.github.com/users/adamvarhegyi/orgs","repos_url":"https://api.github.com/users/adamvarhegyi/repos","events_url":"https://api.github.com/users/adamvarhegyi/events{/privacy}","received_events_url":"https://api.github.com/users/adamvarhegyi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-11-13T11:01:22Z","updated_at":"2016-03-12T12:46:59Z","closed_at":null,"body":"\r\n   \r\n\r\n\r\n\r\n\r\n\r\nSo after i call:\r\n\r\n\r\n       RingcaptchaApplication.onboard(getApplicationContext(), \"my_app_key_here\", \"my_secret_key_here\", new RingcaptchaApplicationHandler() {\r\n                    @Override\r\n                    public void onSuccess(RingcaptchaVerification ringcaptchaVerification) {\r\n                    }\r\n                    @Override\r\n                    public void onCancel() {\r\n                    }\r\n                });\r\n\r\n\r\nI got **this exception:**\r\n\r\n\r\n    11-13 11:44:53.484: E/AndroidRuntime(2192): Process: com.illion.dotodo.application.sender, PID: 2192\r\n    11-13 11:44:53.484: E/AndroidRuntime(2192): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.illion.dotodo.application.sender/com.thrivecom.ringcaptcha.OnboardActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.v7.app.ActionBar.setDisplayHomeAsUpEnabled(boolean)' on a null object reference\r\n    11-13 11:44:53.484: E/AndroidRuntime(2192): \tat android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2416)\r\n    11-13 11:44:53.484: E/AndroidRuntime(2192): \tat android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)\r\n    11-13 11:44:53.484: E/AndroidRuntime(2192): \tat android.app.ActivityThread.-wrap11(ActivityThread.java)\r\n    11-13 11:44:53.484: E/AndroidRuntime(2192): \tat android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)\r\n    11-13 11:44:53.484: E/AndroidRuntime(2192): \tat android.os.Handler.dispatchMessage(Handler.java:102)\r\n    11-13 11:44:53.484: E/AndroidRuntime(2192): \tat android.os.Looper.loop(Looper.java:148)\r\n    11-13 11:44:53.484: E/AndroidRuntime(2192): \tat android.app.ActivityThread.main(ActivityThread.java:5417)\r\n    11-13 11:44:53.484: E/AndroidRuntime(2192): \tat java.lang.reflect.Method.invoke(Native Method)\r\n    11-13 11:44:53.484: E/AndroidRuntime(2192): \tat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)\r\n    11-13 11:44:53.484: E/AndroidRuntime(2192): \tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)\r\n    11-13 11:44:53.484: E/AndroidRuntime(2192): Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.v7.app.ActionBar.setDisplayHomeAsUpEnabled(boolean)' on a null object reference\r\n    11-13 11:44:53.484: E/AndroidRuntime(2192): \tat com.thrivecom.ringcaptcha.BaseActivity.onCreate(BaseActivity.java:48)\r\n    11-13 11:44:53.484: E/AndroidRuntime(2192): \tat com.thrivecom.ringcaptcha.OnboardActivity.onCreate(OnboardActivity.java:53)\r\n    11-13 11:44:53.484: E/AndroidRuntime(2192): \tat android.app.Activity.performCreate(Activity.java:6237)\r\n    11-13 11:44:53.484: E/AndroidRuntime(2192): \tat android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107)\r\n    11-13 11:44:53.484: E/AndroidRuntime(2192): \tat android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369)\r\n\r\n\r\n\r\nBy the way, your documentation is **outdated:**\r\n\r\nIt says in docs (https://my.ringcaptcha.com/docs/android): \r\n\r\n\r\n\"On your initial Activity, in the method hooked to the user event add the following line of code.\"\r\n\r\n    RingcaptchaApplication.onboard(getApplicationContext(),\"{{ app_key }}\", \"{{ secret_key }}\", new RingcaptchaHandler() {\r\n      @Override\r\n      public void onSuccess(RingcaptchaVerification o) {\r\n          //Verification successful\r\n      }\r\n      @Override\r\n      public void onCancel(RingcaptchaVerification o) {\r\n          //Decide what do do if user cancelled operation\r\n      }   \r\n    });\r\n  \r\n  But there are only these onboard functions **with different signatures:**\r\n  \r\n    onboard(Context context, String appKey, String secretKey, RingcaptchaApplicationHandler ringah);\r\n    onboard(Context context, String appKey, String secretKey, String pin, RingcaptchaApplicationHandler ringah);\r\n  \r\n  \r\n  **RingcaptchaApplicationHandler != RingcaptchaHandler**\r\n\r\n\r\n  \r\nAlso the version **in doc** says\r\n \r\n compile 'com.thrivecom:ringcaptcha:**1.0.7**@aar'\r\n \r\n the version **in github** says\r\n  \r\ncompile 'com.thrivecom:ringcaptcha:**1.0.8**@aar'\r\n\r\n\r\n\r\nI have tried Cognalys call verification but their system got errors.\r\nI would really like to migrate to ringcaptcha if it is working well.\r\n\r\nPlease help if you can.\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ringcaptcha/ringcaptcha-android/issues/comments/195734608","html_url":"https://github.com/ringcaptcha/ringcaptcha-android/issues/1#issuecomment-195734608","issue_url":"https://api.github.com/repos/ringcaptcha/ringcaptcha-android/issues/1","id":195734608,"user":{"login":"vrunoa","id":329957,"avatar_url":"https://avatars.githubusercontent.com/u/329957?v=3","gravatar_id":"","url":"https://api.github.com/users/vrunoa","html_url":"https://github.com/vrunoa","followers_url":"https://api.github.com/users/vrunoa/followers","following_url":"https://api.github.com/users/vrunoa/following{/other_user}","gists_url":"https://api.github.com/users/vrunoa/gists{/gist_id}","starred_url":"https://api.github.com/users/vrunoa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vrunoa/subscriptions","organizations_url":"https://api.github.com/users/vrunoa/orgs","repos_url":"https://api.github.com/users/vrunoa/repos","events_url":"https://api.github.com/users/vrunoa/events{/privacy}","received_events_url":"https://api.github.com/users/vrunoa/received_events","type":"User","site_admin":false},"created_at":"2016-03-12T12:46:59Z","updated_at":"2016-03-12T12:46:59Z","body":"What is your ```<application android:theme=\"@style/AppTheme\"``` extending from ? Does it start working if you change it to the one used in the [example](https://github.com/ringcaptcha/ringcaptcha-android/blob/master/Example/app/src/main/res/values/styles.xml)"}}