Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by wenmingvs
, 1 year ago
Attempt to invoke virtual method 'java.lang.String java.io.File.getPath()' on a null object reference
via GitHub by wenmingvs
, 1 year ago
Attempt to invoke virtual method 'java.lang.String java.io.File.getPath()' on a null object reference
via GitHub by wenmingvs
, 1 year ago
Attempt to invoke virtual method 'java.lang.String java.io.File.getPath()' on a null object reference
via GitHub by wenmingvs
, 1 year ago
Attempt to invoke virtual method 'java.lang.String java.io.File.getPath()' on a null object reference
via GitHub by wenmingvs
, 1 year ago
Attempt to invoke virtual method 'java.lang.String java.io.File.getPath()' on a null object reference
via GitHub by wenmingvs
, 1 year ago
Attempt to invoke virtual method 'java.lang.String java.io.File.getPath()' on a null object reference
java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.io.File.getPath()' on a null object reference	at pl.droidsonroids.gif.GifDrawable.(GifDrawable.java:136)	at com.wenming.weiswift.ui.common.FillContent.displayGif(FillContent.java:453)	at com.wenming.weiswift.ui.common.FillContent$7.onLoadingComplete(FillContent.java:544)	at com.nostra13.universalimageloader.core.ImageLoader.displayImage(ImageLoader.java:283)	at com.nostra13.universalimageloader.core.ImageLoader.displayImage(ImageLoader.java:209)	at com.nostra13.universalimageloader.core.ImageLoader.loadImage(ImageLoader.java:528)	at com.nostra13.universalimageloader.core.ImageLoader.loadImage(ImageLoader.java:464)	at com.wenming.weiswift.ui.common.FillContent.fillImageList(FillContent.java:484)	at com.wenming.weiswift.ui.login.fragment.home.timelineimagelist.ImageAdapter.onBindViewHolder(ImageAdapter.java:45)	at com.wenming.weiswift.ui.login.fragment.home.timelineimagelist.ImageAdapter.onBindViewHolder(ImageAdapter.java:23)	at android.support.v7.widget.RecyclerView$Adapter.onBindViewHolder(RecyclerView.java:5453)	at android.support.v7.widget.RecyclerView$Adapter.bindViewHolder(RecyclerView.java:5486)	at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:4723)	at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:4599)	at android.support.v7.widget.LinearLayoutManager$LayoutState.next(LinearLayoutManager.java:1988)	at android.support.v7.widget.GridLayoutManager.layoutChunk(GridLayoutManager.java:528)	at android.support.v7.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1347)	at android.support.v7.widget.LinearLayoutManager.onLayoutChildren(LinearLayoutManager.java:574)	at android.support.v7.widget.GridLayoutManager.onLayoutChildren(GridLayoutManager.java:170)	at android.support.v7.widget.RecyclerView.dispatchLayoutStep2(RecyclerView.java:3003)	at android.support.v7.widget.RecyclerView.onMeasure(RecyclerView.java:2600)	at android.view.View.measure(View.java:20151)	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6328)	at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1464)	at android.widget.LinearLayout.measureVertical(LinearLayout.java:747)	at android.widget.LinearLayout.onMeasure(LinearLayout.java:629)	at android.view.View.measure(View.java:20151)	at android.support.v7.widget.RecyclerView$LayoutManager.measureChildWithMargins(RecyclerView.java:7454)	at android.support.v7.widget.LinearLayoutManager.layoutChunk(LinearLayoutManager.java:1410)	at android.support.v7.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1347)	at android.support.v7.widget.LinearLayoutManager.onLayoutChildren(LinearLayoutManager.java:574)	at android.support.v7.widget.RecyclerView.dispatchLayoutStep2(RecyclerView.java:3003)	at android.support.v7.widget.RecyclerView.dispatchLayout(RecyclerView.java:2881)	at android.support.v7.widget.RecyclerView.onLayout(RecyclerView.java:3265)	at android.view.View.layout(View.java:17938)	at android.view.ViewGroup.layout(ViewGroup.java:5812)	at android.support.v4.widget.SwipeRefreshLayout.onLayout(SwipeRefreshLayout.java:596)	at android.view.View.layout(View.java:17938)	at android.view.ViewGroup.layout(ViewGroup.java:5812)	at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1742)	at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1585)	at android.widget.LinearLayout.onLayout(LinearLayout.java:1494)	at android.view.View.layout(View.java:17938)	at android.view.ViewGroup.layout(ViewGroup.java:5812)	at android.widget.FrameLayout.layoutChildren(FrameLayout.java:344)	at android.widget.FrameLayout.onLayout(FrameLayout.java:281)	at android.view.View.layout(View.java:17938)	at android.view.ViewGroup.layout(ViewGroup.java:5812)	at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1742)	at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1585)	at android.widget.LinearLayout.onLayout(LinearLayout.java:1494)	at android.view.View.layout(View.java:17938)	at android.view.ViewGroup.layout(ViewGroup.java:5812)	at android.widget.FrameLayout.layoutChildren(FrameLayout.java:344)	at android.widget.FrameLayout.onLayout(FrameLayout.java:281)	at android.view.View.layout(View.java:17938)	at android.view.ViewGroup.layout(ViewGroup.java:5812)	at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1742)	at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1585)	at android.widget.LinearLayout.onLayout(LinearLayout.java:1494)	at android.view.View.layout(View.java:17938)	at android.view.ViewGroup.layout(ViewGroup.java:5812)	at android.widget.FrameLayout.layoutChildren(FrameLayout.java:344)	at android.widget.FrameLayout.onLayout(FrameLayout.java:281)	at com.android.internal.policy.PhoneWindow$DecorView.onLayout(PhoneWindow.java:3193)	at android.view.View.layout(View.java:17938)	at android.view.ViewGroup.layout(ViewGroup.java:5812)	at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2666)	at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2367)	at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1437)	at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:7414)	at android.view.Choreographer$CallbackRecord.run(Choreographer.java:920)	at android.view.Choreographer.doCallbacks(Choreographer.java:695)	at android.view.Choreographer.doFrame(Choreographer.java:631)	at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:906)	at android.os.Handler.handleCallback(Handler.java:739)	at android.os.Handler.dispatchMessage(Handler.java:95)	at android.os.Looper.loop(Looper.java:158)	at android.app.ActivityThread.main(ActivityThread.java:7224)	at java.lang.reflect.Method.invoke(Native Method)	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)	at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:134)