diff --git a/libmachine/crashreport/crash_report.go b/libmachine/crashreport/crash_report.go index 1d1ddd2414..b59d63f514 100644 --- a/libmachine/crashreport/crash_report.go +++ b/libmachine/crashreport/crash_report.go @@ -112,6 +112,9 @@ func (r *BugsnagCrashReporter) noReportFileExist() bool { } func addFile(path string, metaData *bugsnag.MetaData) { + if path == "" { + return + } file, err := os.Open(path) if err != nil { log.Debug(err)