Skip to content

Commit

Permalink
fix: nil dereference in GetNodeStatus of cashu backend
Browse files Browse the repository at this point in the history
  • Loading branch information
elnosh committed Jan 10, 2025
1 parent 02467cc commit 56dd13a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions wails/wails_handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -582,6 +582,9 @@ func (app *WailsApp) WailsRequestRouter(route string, method string, body string
if err != nil {
return WailsRequestRouterResponse{Body: nil, Error: err.Error()}
}
if nodeStatus == nil {
return WailsRequestRouterResponse{Body: nil, Error: ""}
}
return WailsRequestRouterResponse{Body: *nodeStatus, Error: ""}
case "/api/info":
infoResponse, err := app.api.GetInfo(ctx)
Expand Down

0 comments on commit 56dd13a

Please sign in to comment.