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

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

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via couchbase.com by Unknown author, 9 months ago
Attempt to invoke virtual method 'java.lang.String java.io.File.getAbsolutePath()' on a null object reference
java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.io.File.getAbsolutePath()' on a null object reference
at com.couchbase.lite.util.NativeLibUtils.loadLibrary(NativeLibUtils.java:45)
at com.couchbase.lite.store.ForestDBStore.(ForestDBStore.java:75)
at java.lang.Class.classForName(Native Method)
at java.lang.Class.forName(Class.java:309)
at java.lang.Class.forName(Class.java:273)
at com.couchbase.lite.Database.createStoreInstance(Database.java:1236)
at com.couchbase.lite.Database.open(Database.java:1292)
at com.couchbase.lite.Manager.openDatabase(Manager.java:334)
at com.happyfall.kamero.couchbase.database.CouchDatabase.getDatabase(CouchDatabase.java:42)
at com.happyfall.kamero.couchbase.CouchApp.(CouchApp.java:27)
at com.happyfall.kamero.couchbase.CouchApp.(CouchApp.java:20)
at com.happyfall.kamero.couchbase.replication.ContinuousReplication.(ContinuousReplication.java:24)
at com.happyfall.kamero.couchbase.replication.ContinuousReplication.(ContinuousReplication.java:19)
at com.happyfall.kamero.login.facebook.LoginManager.userLoggedIn(LoginManager.java:191)
at com.happyfall.kamero.login.facebook.LoginManager.(LoginManager.java:78)
at com.happyfall.kamero.login.facebook.LoginManager.(LoginManager.java:31)
at com.happyfall.kamero.init.KameroApp.onCreate(KameroApp.java:49)
at com.android.tools.fd.runtime.BootstrapApplication.onCreate(BootstrapApplication.java:370)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1035)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4638)
at android.app.ActivityThread.access$1500(ActivityThread.java:155)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1378)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5343)
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:905)

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.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.