[Ide] Added null check for file name.