In file_get_all_files_in_draftarea function an integer could get a null value so it is necessary to execute this function only when is called with a valid integer value.