Commit b4bd97d4 authored by Jim Nelson's avatar Jim Nelson

#2526: A null reference was not handled properly, causing this problem.

parent 89c992e1
......@@ -1148,7 +1148,7 @@ public class LibraryWindow : AppWindow {
}
// don't unmount mass storage cameras, as they are then unavailable to gPhoto
if (!camera.uri.has_prefix("file://")) {
if (mount != null && !camera.uri.has_prefix("file://")) {
if (page.unmount_camera(mount))
switch_to_page(page);
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment