Adds missing null check to the setColorPalette function.
@@ -868,10 +868,13 @@ public class Screen {
for (int y = 0 ; y < tiles.getHeight() ; y++) {
for (int x = 0 ; x < tiles.getWidth() ; x++) {
final Tile tile = tiles.getTileAt(x, y);
+
+ if (tile != null) {
tile.setForegroundColor(colorPalette.getDefaultForeground());
tile.setBackgroundColor(colorPalette.getDefaultBackground());
}
}
+ }
// Change child component color palettes.
componentsLock.readLock().lock();
