mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
fix: check nil argument in blitFullFrom method
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user