http://bugzilla.suse.com/show_bug.cgi?id=1043218
http://bugzilla.suse.com/show_bug.cgi?id=1043218#c3
--- Comment #3 from Michael Andres
zypp::MediaSetAccess_Ptr & YRepo::mediaAccess() { if (!_maccess) { y2milestone("Creating new MediaSetAccess for url %s", (*_repo.baseUrlsBegin()).asString().c_str()); ^^^^^^^^^^^^^^^^^^^^^^
We are used to the fact that repos _usually_ have at least one baseurl defined, but this is not necessarily true. baseUrls may be empty! We should check our code for occurrences of '*baseUrlsBegin()' and make sure it's protected by 'baseUrlsEmpty()'. If appropriate (e.g. in messages) you can also use RepoInfo::url():
/** * Pars pro toto: The first repository url */ Url url() const { return( baseUrlsEmpty() ? Url() : *baseUrlsBegin()); }
-- You are receiving this mail because: You are on the CC list for the bug.