Skip to content

Commit 999d5f1

Browse files
committed
Fix unexpected end of JSON input in dashboard resource
1 parent 71524d5 commit 999d5f1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sumologic/sumologic_dashboard.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ func (s *Client) GetDashboard(id string) (*Dashboard, error) {
1111
if err != nil {
1212
return nil, err
1313
}
14+
if data == nil {
15+
return nil, nil
16+
}
1417

1518
var dashboard Dashboard
1619
err = json.Unmarshal(data, &dashboard)

0 commit comments

Comments
 (0)