changeset 4812:8ab1e60b7f31

Another fix for undefined values in GM import.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Tue, 29 Oct 2019 17:30:03 +0100
parents c0fe2ac434bd
children 0644c2b3af54
files pkg/imports/gm.go
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pkg/imports/gm.go	Tue Oct 29 17:25:17 2019 +0100
+++ b/pkg/imports/gm.go	Tue Oct 29 17:30:03 2019 +0100
@@ -399,7 +399,7 @@
 				convert(measure.Value_max)
 
 				// -99999 is used by some gauges to signal an error
-				if measure.Value == nil || *measure.Value == -99999 {
+				if measure.Value != nil && *measure.Value == -99999 {
 					badValue++
 					continue
 				}