Commit 7e111ab7 authored by R.W.Majeed's avatar R.W.Majeed
Browse files

skip empty meta values

parent e623775c
...@@ -58,7 +58,9 @@ public class Meta { ...@@ -58,7 +58,9 @@ public class Meta {
ObservationSupplier.META_SOURCE_TIMESTAMP ObservationSupplier.META_SOURCE_TIMESTAMP
}; };
for( String key : keys ){ for( String key : keys ){
target.setMeta(key, source.getMeta(key)); String value = source.getMeta(key);
if( value == null )continue; // skip null values
target.setMeta(key, value);
} }
} }
} }
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment