The breadcrumb block can be empty, i.e. have no breadcrumb, however the $variables[page][region] array is not empty, so it gets added, this of course appears in preprocess where a check for empty fails.
Result - I can't reliably layout the page using preprocess to add classes, neither can Bartik which breaks if you stick the Breadcrumb block in the sidebar and view the front page.
#2350949: Add hook_page_attachments(_alter)() and deprecate hook_page_build/alter() could be related, not sure.
Comments
Comment #1
dawehnerComment #2
dawehner@Jeff Burnz
What is the reason to report a bug against 8.1.x? I think people will see that problem also in 8.0.x...
Comment #3
Jeff Burnz commentedI was in a hurry and chose the wrong version :)
Comment #4
wildfeed commentedBreadcrumb block is rendered properly when set to appear in Sidebar first using Bartik theme.
Comment #5
penyaskitoThanks for checking @wildfeed!
I can confirm the same, enabled breadcrumb block and went to a page without breadcrumb, and there was no error or warning (nor in the UI nor in apache log).