Merge pull request #31 from BluWings/master

#30
#30 made decoding of query result null-safe (fixed NPE)