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

View File

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