changeset 897:b3c18ced286c

merge
author Thomas Junk <thomas.junk@intevation.de>
date Tue, 02 Oct 2018 16:03:24 +0200
parents b9aaa093a9fb (current diff) 3bb275235c89 (diff)
children 66e2b038d336 038ba806f323
files
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/pkg/models/cross.go	Tue Oct 02 16:02:56 2018 +0200
+++ b/pkg/models/cross.go	Tue Oct 02 16:03:24 2018 +0200
@@ -346,6 +346,9 @@
 }
 
 func (mls *GeoJSONMultiLineCoordinatesZ) Scan(src interface{}) error {
+	if src == nil {
+		return nil
+	}
 	data, ok := src.([]byte)
 	if !ok {
 		return errNoByteSlice