mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-15 01:07:42 +00:00
removed empty catch block
This commit is contained in:
parent
4e214ed384
commit
f7a3cc4f72
@ -461,21 +461,17 @@ public final class TimeLineTopComponent extends TopComponent implements Explorer
|
|||||||
KeyboardFocusManager.getCurrentKeyboardFocusManager()
|
KeyboardFocusManager.getCurrentKeyboardFocusManager()
|
||||||
.addPropertyChangeListener("focusOwner", focusPropertyListener);
|
.addPropertyChangeListener("focusOwner", focusPropertyListener);
|
||||||
|
|
||||||
try{
|
VersionNumber version = Case.getCurrentCase().getSleuthkitCase().getDBSchemaCreationVersion();
|
||||||
VersionNumber version = Case.getCurrentCaseThrows().getSleuthkitCase().getDBSchemaCreationVersion();
|
int major = version.getMajor();
|
||||||
int major = version.getMajor();
|
int minor = version.getMinor();
|
||||||
int minor = version.getMinor();
|
|
||||||
|
if(major < 8 || (major == 8 && minor <= 2)) {
|
||||||
if(major < 8 || (major == 8 && minor <= 2)) {
|
Platform.runLater(() -> {
|
||||||
Platform.runLater(() -> {
|
Notifications.create()
|
||||||
Notifications.create()
|
.owner(jFXViewPanel.getScene().getWindow())
|
||||||
.owner(jFXViewPanel.getScene().getWindow())
|
.text(Bundle.Timeline_old_version()).showInformation();
|
||||||
.text(Bundle.Timeline_old_version()).showInformation();
|
});
|
||||||
});
|
}
|
||||||
}
|
|
||||||
} catch(NoCurrentCaseException ex) {
|
|
||||||
// No case, don't popup dialog.
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
x
Reference in New Issue
Block a user