Nullpointerexceptionfix