diff --git a/screen.lua b/screen.lua index f7c9b3f6c..3dd0ebfae 100644 --- a/screen.lua +++ b/screen.lua @@ -100,5 +100,9 @@ function Screen:getCurrentScreenBB() end function Screen:restoreFromBB(bb) - fb.bb:blitFullFrom(bb) + if bb then + fb.bb:blitFullFrom(bb) + else + debug("Got nil bb in restoreFromSavedBB!") + end end