ayltai / Android-Lib-reCAPTCHA

[Deprecated] The reCAPTCHA Android Library provides a simple way to show a CAPTCHA as an ImageView in your Android app, helping you stop bots from abusing it. The library wraps the reCAPTCHA API.
Apache License 2.0
71 stars 27 forks source link

NullPointerException on v1.0.2 #11

Closed niczm25 closed 7 years ago

niczm25 commented 7 years ago

java.lang.NullPointerException: Attempt to invoke virtual method 'int android.graphics.Bitmap.getWidth()' on a null object reference at android.lib.recaptcha.ReCaptcha$1.handleMessage(ReCaptcha.java:385) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:5417) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

An error occurred when network connection is lost during fetching of image. Using the method below.

reCaptcha.showChallengeAsync(myRecaptchaPublicKey, this);

niczm25 commented 7 years ago

Unnecessary issue. please ignore, i will have just to use the current version.

arielkl9 commented 7 years ago

man use the correct version good luck

On Jun 7, 2017 11:28, "niczm25" notifications@github.com wrote:

java.lang.NullPointerException: Attempt to invoke virtual method 'int android.graphics.Bitmap.getWidth()' on a null object reference at android.lib.recaptcha.ReCaptcha$1.handleMessage(ReCaptcha.java:385) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:5417) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run( ZygoteInit.java:726) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

An error occurred when network connection is lost during fetching of image.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ayltai/Android-Lib-reCAPTCHA/issues/11, or mute the thread https://github.com/notifications/unsubscribe-auth/AJqSdovHTupxd8D_usT_zM58xlX9dSsWks5sBl8UgaJpZM4NyXgB .