added default value for unpacking null record for not null scala value