Refactoring and fixing a bug in bug-getting process to prevent null values in the bug list.