java.lang.NullPointerException: Attempt to invoke virtual method 'long java.io.File.length()' on a null object reference

GitHub | wenmingvs | 4 months ago
  1. 0

    【CrashLog】 WeiSwift 2016-07-31 11:10:41:48

    GitHub | 4 months ago | wenmingvs
    java.lang.NullPointerException: Attempt to invoke virtual method 'long java.io.File.length()' on a null object reference
  2. 0

    【CrashLog】 WeiSwift 2016-07-30 04:17:28:81

    GitHub | 4 months ago | wenmingvs
    java.lang.NullPointerException: Attempt to invoke virtual method 'long java.io.File.length()' on a null object reference
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    【CrashLog】 WeiSwift 2016-08-02 11:42:56:35

    GitHub | 4 months ago | wenmingvs
    java.lang.NullPointerException: Attempt to invoke virtual method 'long java.io.File.length()' on a null object reference
  5. 0

    【CrashLog】 WeiSwift 2016-08-04 01:59:39:06

    GitHub | 4 months ago | wenmingvs
    java.lang.NullPointerException: Attempt to invoke virtual method 'long java.io.File.length()' on a null object reference

    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.NullPointerException

      Attempt to invoke virtual method 'long java.io.File.length()' on a null object reference

      at com.wenming.weiswift.ui.common.FillContent.isLongImg()
    2. com.wenming.weiswift
      FillContent$7.onLoadingComplete
      1. com.wenming.weiswift.ui.common.FillContent.isLongImg(FillContent.java:465)
      2. com.wenming.weiswift.ui.common.FillContent$7.onLoadingComplete(FillContent.java:549)
      2 frames
    3. Universal Image Loader Library
      ImageLoader.loadImage
      1. com.nostra13.universalimageloader.core.ImageLoader.displayImage(ImageLoader.java:283)
      2. com.nostra13.universalimageloader.core.ImageLoader.displayImage(ImageLoader.java:209)
      3. com.nostra13.universalimageloader.core.ImageLoader.loadImage(ImageLoader.java:528)
      4. com.nostra13.universalimageloader.core.ImageLoader.loadImage(ImageLoader.java:464)
      4 frames
    4. com.wenming.weiswift
      ImageAdapter.onBindViewHolder
      1. com.wenming.weiswift.ui.common.FillContent.fillImageList(FillContent.java:484)
      2. com.wenming.weiswift.ui.login.fragment.home.timelineimagelist.ImageAdapter.onBindViewHolder(ImageAdapter.java:45)
      3. com.wenming.weiswift.ui.login.fragment.home.timelineimagelist.ImageAdapter.onBindViewHolder(ImageAdapter.java:23)
      3 frames
    5. Android v7
      RecyclerView.onMeasure
      1. android.support.v7.widget.RecyclerView$Adapter.onBindViewHolder(RecyclerView.java:5453)
      2. android.support.v7.widget.RecyclerView$Adapter.bindViewHolder(RecyclerView.java:5486)
      3. android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:4723)
      4. android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:4599)
      5. android.support.v7.widget.LinearLayoutManager$LayoutState.next(LinearLayoutManager.java:1988)
      6. android.support.v7.widget.GridLayoutManager.layoutChunk(GridLayoutManager.java:528)
      7. android.support.v7.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1347)
      8. android.support.v7.widget.LinearLayoutManager.onLayoutChildren(LinearLayoutManager.java:574)
      9. android.support.v7.widget.GridLayoutManager.onLayoutChildren(GridLayoutManager.java:170)
      10. android.support.v7.widget.RecyclerView.dispatchLayoutStep2(RecyclerView.java:3003)
      11. android.support.v7.widget.RecyclerView.onMeasure(RecyclerView.java:2600)
      11 frames
    6. Android Platform
      View.measure
      1. android.view.View.measure(View.java:18811)
      2. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5952)
      3. android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1465)
      4. android.widget.LinearLayout.measureVertical(LinearLayout.java:748)
      5. android.widget.LinearLayout.onMeasure(LinearLayout.java:630)
      6. android.view.View.measure(View.java:18811)
      6 frames
    7. Android v7
      RecyclerView.onTouchEvent
      1. android.support.v7.widget.RecyclerView$LayoutManager.measureChildWithMargins(RecyclerView.java:7454)
      2. android.support.v7.widget.LinearLayoutManager.layoutChunk(LinearLayoutManager.java:1410)
      3. android.support.v7.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1347)
      4. android.support.v7.widget.LinearLayoutManager.scrollBy(LinearLayoutManager.java:1174)
      5. android.support.v7.widget.LinearLayoutManager.scrollVerticallyBy(LinearLayoutManager.java:1031)
      6. android.support.v7.widget.RecyclerView.scrollByInternal(RecyclerView.java:1504)
      7. android.support.v7.widget.RecyclerView.onTouchEvent(RecyclerView.java:2461)
      7 frames
    8. Android Platform
      ViewGroup.dispatchTouchEvent
      1. android.view.View.dispatchTouchEvent(View.java:9306)
      2. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2548)
      3. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2241)
      4. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2554)
      5. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2255)
      6. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2554)
      7. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2255)
      8. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2554)
      9. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2255)
      10. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2554)
      11. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2255)
      12. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2554)
      13. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2255)
      14. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2554)
      15. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2255)
      16. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2554)
      17. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2255)
      17 frames
    9. Android
      PhoneWindow.superDispatchTouchEvent
      1. com.android.internal.policy.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:2403)
      2. com.android.internal.policy.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1737)
      2 frames
    10. Android Platform
      Activity.dispatchTouchEvent
      1. android.app.Activity.dispatchTouchEvent(Activity.java:2820)
      1 frame
    11. Android
      PhoneWindow$DecorView.dispatchTouchEvent
      1. com.android.internal.policy.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:2364)
      1 frame
    12. Android Platform
      ActivityThread.main
      1. android.view.View.dispatchPointerEvent(View.java:9526)
      2. android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:4255)
      3. android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:4121)
      4. android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3662)
      5. android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3715)
      6. android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3681)
      7. android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:3807)
      8. android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3689)
      9. android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:3864)
      10. android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3662)
      11. android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3715)
      12. android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3681)
      13. android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3689)
      14. android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3662)
      15. android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:5947)
      16. android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:5921)
      17. android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:5882)
      18. android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:6050)
      19. android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:185)
      20. android.view.InputEventReceiver.nativeConsumeBatchedInputEvents(Native Method)
      21. android.view.InputEventReceiver.consumeBatchedInputEvents(InputEventReceiver.java:176)
      22. android.view.ViewRootImpl.doConsumeBatchedInput(ViewRootImpl.java:6021)
      23. android.view.ViewRootImpl$ConsumeBatchedInputRunnable.run(ViewRootImpl.java:6073)
      24. android.view.Choreographer$CallbackRecord.run(Choreographer.java:860)
      25. android.view.Choreographer.doCallbacks(Choreographer.java:672)
      26. android.view.Choreographer.doFrame(Choreographer.java:602)
      27. android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:846)
      28. android.os.Handler.handleCallback(Handler.java:739)
      29. android.os.Handler.dispatchMessage(Handler.java:95)
      30. android.os.Looper.loop(Looper.java:148)
      31. android.app.ActivityThread.main(ActivityThread.java:5438)
      31 frames
    13. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      1 frame
    14. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:739)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:629)
      2 frames