Skip to content

Commit

Permalink
Refs #112, fixed NPE, that occurs based on Golang version.
Browse files Browse the repository at this point in the history
  • Loading branch information
tvrzna committed Jun 11, 2024
1 parent fa3723f commit b6fcf7c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ func (s *commonSession) start() {

if s.conf.AlwaysDbusLaunch {
if s.auth.usr().getenv(dbusSessionBusAddress) == "" {
s.dbus = &dbus{}
s.dbus.launch(s.auth.usr())
} else {
logPrint("DBUS_SESSION_BUS_ADDRESS is already set, skipping start of DBUS_LAUNCH")
Expand All @@ -115,7 +116,7 @@ func (s *commonSession) start() {

err := session.Wait()

if s.dbus.pid > 0 {
if s.dbus != nil && s.dbus.pid > 0 {
s.dbus.interrupt()
}

Expand Down

0 comments on commit b6fcf7c

Please sign in to comment.