Fix possible null pointer when a previous revision was null
Merge pull request #279 from b1naryth1ef/fix_revision_nullpointer

Fix possible null pointer when a previous revision was null