Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid Gallery Widget Error: java.lang.NullPointerException at android.widget.Gallery.setUpChild
    text
    copied!<p>The main Activity in my Android app has a Gallery widget that loads XML layouts (containing TextViews and Images) through an efficient ImageAdapter. For the most part this works fine and I haven't had any problems on any of my devices or the emulator, but I have seen the following error in my logs. It looks like this is affecting less than 1% of users, but I'd like to know what's causing it, how to resolve it, or at least "catch" it and resolve gracefully. Any ideas?</p> <pre><code>java.lang.NullPointerException at </code></pre> <p><code>android.widget.Gallery.setUpChild(Gallery.java:772) at</code> <code>android.widget.Gallery.makeAndAddView(Gallery.java:751) at</code> <code>android.widget.Gallery.fillToGalleryLeft(Gallery.java:667) at</code> <code>android.widget.Gallery.trackMotionScroll(Gallery.java:378) at</code> <code>android.widget.Gallery$FlingRunnable.run(Gallery.java:1369) at</code> <code>android.os.Handler.handleCallback(Handler.java:587) at</code> <code>android.os.Handler.dispatchMessage(Handler.java:92) at</code> <code>android.os.Looper.loop(Looper.java:130) at</code> <code>android.app.ActivityThread.main(ActivityThread.java:3695) at</code> <code>java.lang.reflect.Method.invokeNative(Native Method) at</code> <code>java.lang.reflect.Method.invoke(Method.java:507) at</code> <code>com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:842) at</code> <code>com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600) at</code> <code>dalvik.system.NativeStart.main(Native Method)</code></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload