nullpointer still there. Added test for it and log problem