Null-Check in Display.paintDisplay(...) to avoid NullPointerException 
when using the WindowBuilder for Swing in Eclipse.