patches the NullPointerException on db reset
Merge pull request #173 from giastfader/master

patches the NullPointerException on db reset