Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix segmentation fault #169

Merged
merged 1 commit into from
Apr 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Core/Main.vala
Original file line number Diff line number Diff line change
Expand Up @@ -3433,10 +3433,10 @@ public class Main : GLib.Object{
// find devices from uuid
Device dev = null;
Device dev_parent = null;
if (backup_uuid.length > 0){
if (backup_uuid != null && backup_uuid.length > 0){
dev = Device.get_device_by_uuid(backup_uuid);
}
if (backup_parent_uuid.length > 0){
if (backup_parent_uuid != null && backup_parent_uuid.length > 0){
dev_parent = Device.get_device_by_uuid(backup_parent_uuid);
}

Expand Down
2 changes: 1 addition & 1 deletion src/Core/SnapshotRepo.vala
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ public class SnapshotRepo : GLib.Object{
//log_debug("checking selected device");

if (device == null){
if (App.backup_uuid.length == 0){
if (App.backup_uuid == null || App.backup_uuid.length == 0){
log_debug("device is null");
status_message = _("Snapshot device not selected");
status_details = _("Select the snapshot device");
Expand Down