mirror of
https://github.com/rancher/norman.git
synced 2025-09-01 15:18:20 +00:00
Fix panic when posting to /
This commit is contained in:
@@ -205,7 +205,7 @@ func newCollection(apiContext *types.APIContext) *types.GenericCollection {
|
||||
}
|
||||
}
|
||||
|
||||
if result.Pagination.Partial {
|
||||
if result.Pagination != nil && result.Pagination.Partial {
|
||||
if result.Pagination.Next != "" {
|
||||
result.Pagination.Next = apiContext.URLBuilder.Marker(result.Pagination.Next)
|
||||
}
|
||||
|
Reference in New Issue
Block a user