mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-17 10:17:41 +00:00
Fixed NPE when adding local disk
This commit is contained in:
parent
2ee7108b10
commit
f11fe15926
@ -419,12 +419,14 @@ final class LocalDiskPanel extends JPanel {
|
||||
label.setForeground(list.getForeground());
|
||||
}
|
||||
|
||||
if (value != null) {
|
||||
String localDiskString = value.toString();
|
||||
label.setText(value.toString());
|
||||
if ((localDiskString.equals(LOADING)) || (localDiskString.equals(NO_DRIVES))) {
|
||||
label.setFont(label.getFont().deriveFont(Font.ITALIC));
|
||||
label.setBackground(Color.GRAY);
|
||||
}
|
||||
}
|
||||
label.setOpaque(true);
|
||||
label.setBorder(new EmptyBorder(2, 2, 2, 2));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user