LPS-43024 File is never null because temp file is always created
LPS-43024 Prevent NPE