Fail to refresh properly the Metric view of a Thread view when it has no metric values
Describe the bug
The viewer does not refresh Metric view properly
To Reproduce
- Open a database where a thread has no metric value
- Open a Metric view
- Open a Thread view of that empty thread
- Open another Thread view with metrics
- Close the Thread view
- An error message appears: "java.lang.NullPointerException: Cannot invoke "org.hpctoolkit.db.local.experiment.metric.IMetricManager.addMetricListener(java.beans.PropertyChangeListener)" because "metricManager" is null"
Platform (please complete the following information):
- OS: [Linux, MacOS]
- Architecture [x86, arm]
- Version [main]