Added extra buffer==null checks to active render loop

This commit is contained in:
nathan 2017-09-17 14:33:45 +02:00
parent 9bf78f0f70
commit d6f5ef4e46
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ class ActiveRenderLoop implements Runnable {
graphics.dispose();
// blit the back buffer to the screen
if (!buffer.contentsLost()) {
if (buffer != null && !buffer.contentsLost()) {
buffer.show();
}
}