結果 : java get first element of list if not null