prevent NPE

dbus-notify
Zlatin Balevsky 2022-08-09 11:56:55 +01:00
parent 44a800435e
commit 1818fd88a8
No known key found for this signature in database
GPG Key ID: A72832072D525E41
1 changed files with 3 additions and 0 deletions

View File

@ -19,6 +19,9 @@ class DownloadProgressRenderer extends DefaultTableCellRenderer {
@Override @Override
JComponent getTableCellRendererComponent(JTable table, Object value, JComponent getTableCellRendererComponent(JTable table, Object value,
boolean isSelected, boolean hasFocus, int row, int column) { boolean isSelected, boolean hasFocus, int row, int column) {
if (value == null)
return this //TODO investigate
int percent = -1 int percent = -1
Downloader d = (Downloader) value Downloader d = (Downloader) value
if (d instanceof CopyingDownloader) if (d instanceof CopyingDownloader)