Fix recursive getObject() call 

Recursive calls can only end by throwing StackOverflowError
Merge pull request #4 from Trojaner25/patch-2

Fix recursive getObject() call