dain / leveldb

Port of LevelDB to Java

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NullPointerException on Android

romanman opened this issue · comments

Hey Fellows,

LevelDB works fine for me on Android until
I bumped into this issue:

I get into VersionSet.numberOfFilesInLevel()
where current == null and then get an NPE ,
I will digg deeper by myself but I will appreciate
any hint about what kind role is for this
version files ? why possible it can be null ?

Thanks in advance.

It has been a long time since I have looked at this code, but I don't see anyway this could be null other than someone called destroy. I would debug the code to see if anyone is calling destroy.

Thanks , actually just found that someone closed the connection, it works just fine