Handling null before processing is common approach. However if you can guarantee that incoming data is not null you can proceed without null checking(very risky).