xiezefan/android-test-kit

Using recyclerview-v7:22.1.1 causes NPEs with espresso-contrib 2.1 because it depends on recyclerview-v7:22.0.0

Closed this issue · 1 comments

See
http://stackoverflow.com/questions/30008836/npe-android-support-v7-widget-recycl
erviewlayoutmanager-detachviewinternal

java.lang.NullPointerException: Attempt to invoke virtual method 'void 
android.support.v7.widget.ChildHelper.detachViewFromParent(int)' on a null 
object reference
    at android.support.v7.widget.RecyclerView$LayoutManager.detachViewInternal(RecyclerView.java:5407)
    at android.support.v7.widget.RecyclerView$LayoutManager.detachViewAt(RecyclerView.java:5400)
    at android.support.v7.widget.RecyclerView.setAdapterInternal(RecyclerView.java:647)
    at android.support.v7.widget.RecyclerView.swapAdapter(RecyclerView.java:594)
    at org.ligi.passandroid.ui.PassListActivity.onCreate(PassListActivity.java:161)
    at android.app.Activity.performCreate(Activity.java:5990)
    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)
    at android.support.test.runner.MonitoringInstrumentation.callActivityOnCreate(MonitoringInstrumentation.java:489)
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2278)
    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2390)
    at android.app.ActivityThread.access$800(ActivityThread.java:151)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303)
    at android.os.Handler.dispatchMessage(Handler.java:102)
    at android.os.Looper.loop(Looper.java:135)
    at android.app.ActivityThread.main(ActivityThread.java:5257)
    at java.lang.reflect.Method.invoke(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:372)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)

Original issue reported on code.google.com by nkors...@google.com on 11 May 2015 at 9:02

Original comment by slinz...@google.com on 9 Jun 2015 at 2:50

  • Changed state: Fixed