Reading-eScience-Centre / edal-java

Environmental Data Abstraction Layer libraries
Other
39 stars 30 forks source link

Fix nullptr exception in vectorInfo #146

Closed tdrwenski closed 2 years ago

tdrwenski commented 2 years ago

We came across a nullptr exception in vectorInfo in https://github.com/Unidata/tds/issues/268.

The aggregation in that example lead to a stdRoot == sea_water_velocity. There was also variable with the attribute w:standard_name = "upward_sea_water_velocity" ;. For that variable name the determineVectorIdAndComponent returns null.

I have manually tested this fix with TDS, let me know if you would like any tests added to edal-java.

guygriffiths commented 2 years ago

Thanks for this