Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When opening an image, activity crashes #26

Open
basic-steve opened this issue Feb 12, 2018 · 2 comments
Open

When opening an image, activity crashes #26

basic-steve opened this issue Feb 12, 2018 · 2 comments

Comments

@basic-steve
Copy link

When click on image activity crashes
02-12 17:04:48.202 7382-7382/mn.cdr.du.farnext E/AndroidRuntime: FATAL EXCEPTION: main Process: mn.cdr.du.farnext, PID: 7382 java.lang.NullPointerException: Attempt to invoke interface method 'java.lang.String java.lang.CharSequence.toString()' on a null object reference at com.mzelzoghbi.zgallery.activities.ZGridActivity.onClick(ZGridActivity.java:56) at com.mzelzoghbi.zgallery.adapters.GridImagesAdapter$1.onClick(GridImagesAdapter.java:46) at android.view.View.performClick(View.java:6294) at android.view.View$PerformClick.run(View.java:24770) at android.os.Handler.handleCallback(Handler.java:790) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:164) at android.app.ActivityThread.main(ActivityThread.java:6494) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:440) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)

I have used this code https://github.com/mzelzoghbi/ZGallery#grid-list-builder inside a onclick listener

@localleon
Copy link

Same Error Here

Im facing this Error too, im using Android Studio 3.0.1.
The Sample Code with the DummyImageList produces the same error. Im calling the methode via onClick from XML.

@UniqueJoy
Copy link

me also having same issue.. activity crashes onclick image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants