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

nil pointer panics handling bgapi requests #23

Closed
andmar opened this issue Jun 21, 2019 · 0 comments
Closed

nil pointer panics handling bgapi requests #23

andmar opened this issue Jun 21, 2019 · 0 comments
Assignees

Comments

@andmar
Copy link

andmar commented Jun 21, 2019

We started getting nil pointer panics related with fsock and syslog calls and got it down to this piece of code that seems to log something when handling bgapi requests. We're initializing with the NewFsock function with nil value for the sysloger argument.

func (self *FSock) doBackgroudJob(event string) { // add mutex protection
   evMap := EventToMap(event)
   jobUuid, has := evMap["Job-UUID"]
   if !has {
        self.logger.Err("<FSock> BACKGROUND_JOB with no Job-UUID")
        return
   }
...

We noticed that elsewhere, whenever self.logger.Err is called it's guarded by something like "if self.logger != nil".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants