1
0
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:
Darren Shepherd
2018-01-24 02:02:55 -07:00
parent 2cdc1aa00a
commit 1369734139

View File

@@ -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)
}