java.lang.NullPointerException

Attempt to invoke virtual method 'java.lang.String java.io.File.getParent()' on a null object reference


Solutions on the web21635

Solution icon of github
Attempt to invoke virtual method 'java.lang.String java.io.File.getParent()' on a null object reference

Solution icon of stackoverflow
Attempt to invoke virtual method 'boolean com.example.pooveshin.saica_sgb.DatabaseHelper.SaveUserMeetings(java.lang.String, java.lang.String, java.lang.String, java.lang.String)' on a null object reference

Solution icon of stackoverflow
via Stack Overflow by user2883071
, 1 year ago
Attempt to invoke virtual method 'long com.example.edit.DatabaseClass.insertRecord(java.lang.String, java.lang.String, java.lang.String, java.lang.String)' on a null object reference

Solution icon of github
Attempt to invoke virtual method 'java.lang.String org.unfoldingword.resourcecontainer.ResourceContainer.readChunk(java.lang.String, java.lang.String)' on a null object reference

Solution icon of github
Attempt to invoke virtual method 'java.lang.String org.unfoldingword.resourcecontainer.ResourceContainer.readChunk(java.lang.String, java.lang.String)' on a null object reference

Solution icon of stackoverflow
Attempt to invoke virtual method 'void com.me.interfaces.JsHandler.keepAliveStatusMessage(java.lang.String, java.lang.String, java.lang.String)' on a null object reference

Solution icon of coderanch
via Coderanch by Julius Almeuda, 7 months ago
Attempt to invoke virtual method 'android.database.Cursor android.database.sqlite.SQLiteDatabase.query(java.lang.String, java.lang.String[], java.lang.String, java.lang.String[], java.lang.String, java.lang.String, java.lang.String, java.lang.String)' on a null object reference

Solution icon of github
via GitHub by AruLNadhaN
, 4 months ago
Attempt to invoke virtual method 'void com.hariofspades.incdeclibrary.IncDecImageButton.setConfiguration(int, java.lang.String, java.lang.String, java.lang.String)' on a null object reference

Solution icon of github
via GitHub by tusharbhatta
, 8 months ago
Attempt to invoke virtual method 'java.lang.String android.os.Bundle.getString(java.lang.String, java.lang.String)' on a null object reference

Stack trace

  • java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.io.File.getParent()' on a null object reference at com.facebook.cache.disk.DiskStorageCache.maybeDeleteSharedPreferencesFile(SourceFile:782) at com.facebook.cache.disk.DiskStorageCache.access$300(SourceFile:50) at com.facebook.cache.disk.DiskStorageCache$1.run(SourceFile:193) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.