From 8c9cc41099c9bd66ad1c787e25a1ee033dc569cf Mon Sep 17 00:00:00 2001 From: Andrey Smirnov Date: Sun, 14 Feb 2016 14:51:59 +0300 Subject: [PATCH] Fix nil pointer dereference on S3 publishing. #338 --- s3/public.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/s3/public.go b/s3/public.go index 16b0aaa0..e56d7aea 100644 --- a/s3/public.go +++ b/s3/public.go @@ -302,7 +302,10 @@ func (storage *PublishedStorage) internalFilelist(prefix string, hidePlusWorkaro md5s = append(md5s, strings.Replace(*key.ETag, "\"", "", -1)) } if contents.IsTruncated != nil && *contents.IsTruncated { - marker = *contents.NextMarker + marker = "" + if contents.NextMarker != nil { + marker = *contents.NextMarker + } if marker == "" { // From the s3 docs: If response does not include the // NextMarker and it is truncated, you can use the value of the