java.lang.IllegalArgumentException: Cannot add a null child view to a ViewGroup

GitHub | hasan5151 | 2 months ago
  1. 0

    IllegalArgumentException

    GitHub | 2 months ago | hasan5151
    java.lang.IllegalArgumentException: Cannot add a null child view to a ViewGroup
  2. 0

    Caused by: java.lang.IllegalArgumentException: Cannot add a null child view to a ViewGroup

    GitHub | 10 months ago | Dongzzzz
    java.lang.RuntimeException: Unable to start activity ComponentInfo{net.wequick.example.small/net.wequick.small.webkit.WebActivity}: java.lang.IllegalArgumentException: Cannot add a null child view to a ViewGroup
  3. 0

    Navigation drawer with multiple webviews - Android Studio

    Stack Overflow | 10 months ago | seanwlk
    java.lang.RuntimeException: Unable to start activity ComponentInfo{seanwlk.warface/seanwlk.warface.MainActivity}: java.lang.IllegalArgumentException: Cannot add a null child view to a ViewGroup
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Null reference resuming app with Scanner Activity already running.

    GitHub | 9 months ago | Jtdawgzone
    java.lang.IllegalArgumentException: Cannot add a null child view to a ViewGroup
  6. 0

    java.lang.IllegalArgumentException: Cannot add a null child view to a ViewGroup

    Stack Overflow | 2 months ago | Shûbhâñshû Sïñgh
    java.lang.IllegalArgumentException: Cannot add a null child view to a ViewGroup

  1. jk 8 times, last 7 months ago
  2. Saravana Kumar Chinnaraj 1 times, last 7 months ago
  3. Chandan Jha 9 times, last 9 months ago
9 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.IllegalArgumentException

    Cannot add a null child view to a ViewGroup

    at android.view.ViewGroup.addView()
  2. Android Platform
    ViewGroup.addView
    1. android.view.ViewGroup.addView(ViewGroup.java:4059)
    2. android.view.ViewGroup.addView(ViewGroup.java:4041)
    2 frames
  3. com.mobeta.android
    DragSortListView.onTouchEvent
    1. com.mobeta.android.dslv.DragSortListView$AdapterWrapper.getView(DragSortListView.java:739)
    2. com.mobeta.android.dslv.DragSortListView.getChildHeight(DragSortListView.java:1953)
    3. com.mobeta.android.dslv.DragSortListView.getItemHeight(DragSortListView.java:842)
    4. com.mobeta.android.dslv.DragSortListView.updatePositions(DragSortListView.java:1001)
    5. com.mobeta.android.dslv.DragSortListView.doDragFloatView(DragSortListView.java:2324)
    6. com.mobeta.android.dslv.DragSortListView.doDragFloatView(DragSortListView.java:2313)
    7. com.mobeta.android.dslv.DragSortListView.continueDrag(DragSortListView.java:1795)
    8. com.mobeta.android.dslv.DragSortListView.onDragTouchEvent(DragSortListView.java:2169)
    9. com.mobeta.android.dslv.DragSortListView.onTouchEvent(DragSortListView.java:1633)
    9 frames
  4. Android Platform
    ViewGroup.dispatchTouchEvent
    1. android.view.View.dispatchTouchEvent(View.java:9134)
    2. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2680)
    3. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2351)
    4. android.widget.AbsListView.dispatchTouchEvent(AbsListView.java:5395)
    5. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2691)
    6. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2366)
    7. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2691)
    8. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2366)
    9. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2691)
    10. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2366)
    11. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2691)
    12. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2366)
    13. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2691)
    14. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2366)
    15. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2691)
    16. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2366)
    17. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2691)
    18. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2366)
    19. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2691)
    20. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2366)
    20 frames
  5. Android
    PhoneWindow.superDispatchTouchEvent
    1. com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:2743)
    2. com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1836)
    2 frames
  6. Android Platform
    Activity.dispatchTouchEvent
    1. android.app.Activity.dispatchTouchEvent(Activity.java:3009)
    1 frame
  7. Android v7
    WindowCallbackWrapper.dispatchTouchEvent
    1. android.support.v7.view.WindowCallbackWrapper.dispatchTouchEvent(WindowCallbackWrapper.java:63)
    2. android.support.v7.view.WindowCallbackWrapper.dispatchTouchEvent(WindowCallbackWrapper.java:63)
    2 frames
  8. Android
    PhoneWindow$DecorView.dispatchTouchEvent
    1. com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:2704)
    1 frame
  9. Android Platform
    ActivityThread.main
    1. android.view.View.dispatchPointerEvent(View.java:9344)
    2. android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:5042)
    3. android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:4880)
    4. android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4337)
    5. android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4390)
    6. android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4356)
    7. android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:4482)
    8. android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4364)
    9. android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:4539)
    10. android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4337)
    11. android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4390)
    12. android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4356)
    13. android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4364)
    14. android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4337)
    15. android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:6938)
    16. android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:6811)
    17. android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:6782)
    18. android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:7028)
    19. android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:185)
    20. android.os.MessageQueue.nativePollOnce(MessageQueue.java)
    21. android.os.MessageQueue.next(MessageQueue.java:143)
    22. android.os.Looper.loop(Looper.java:130)
    23. android.app.ActivityThread.main(ActivityThread.java:6946)
    23 frames
  10. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Method.java)
    2. java.lang.reflect.Method.invoke(Method.java:372)
    2 frames
  11. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1404)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1199)
    2 frames