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 Stack Overflow by Wafi Ismail
, 1 year ago
Attempt to invoke virtual method 'java.io.File android.content.Context.getCacheDir()' on a null object reference
via Stack Overflow by Ram Keerthy
, 1 month ago
Attempt to invoke virtual method 'java.io.File android.content.Context.getCacheDir()' on a null object reference
via Stack Overflow by Nev Mcalbason albaslayer
, 2 years ago
Attempt to invoke virtual method 'java.io.File android.content.Context.getCacheDir()' on a null object reference
via Stack Overflow by Nedvid
, 10 months ago
Attempt to invoke virtual method 'java.io.File android.content.Context.getCacheDir()' on a null object reference
java.lang.NullPointerException: Attempt to invoke virtual method 'java.io.File android.content.Context.getCacheDir()' on a null object reference at android.content.ContextWrapper.getCacheDir(ContextWrapper.java:233) at com.android.volley.toolbox.Volley.newRequestQueue(Volley.java:43) at com.android.volley.toolbox.Volley.newRequestQueue(Volley.java:78) at com.example.kappa.servicedemo.Time$1.run(Time.java:66) at java.util.Timer$TimerImpl.run(Timer.java:284)