G.main->name (also bpy.data.filepath) was being set to an uninitialized string. Not much we can do about this so set G.main->name an empty string if no file is loaded.
G.main->name (also bpy.data.filepath) was being set to an uninitialized string. Not much we can do about this so set G.main->name an empty string if no file is loaded.