private BufferedImage thumbnail;
private final MediaPreviewPanel previewPanel;
private final MediaEditPanel editPanel;
public MediaPanels(final Media media) {
this.media = media;
<BUG>final ByteArrayInputStream input = new ByteArrayInputStream(media.getThumbnail());

try {
try {</BUG>
final BufferedImage mediaThumbnail = ImageIO.read(input);

private BufferedImage thumbnail;
private final MediaPreviewPanel previewPanel;
private final MediaEditPanel editPanel;
public MediaPanels(final Media media) {
this.media = media;
try (final ByteArrayInputStream input = new ByteArrayInputStream(media.getThumbnail())) {
final BufferedImage mediaThumbnail = ImageIO.read(input);
