add check for null value - it happened when started in emulator Nexus4