File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/main/java/uk/ac/rdg/resc/edal/ncwms Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -168,15 +168,15 @@ public ContactInfo getContactInfo() {
168
168
}
169
169
170
170
@ Override
171
- public Dataset getDatasetFromId (String datasetId ) {
171
+ public synchronized Dataset getDatasetFromId (String datasetId ) {
172
172
Dataset dataset = super .getDatasetFromId (datasetId );
173
173
if (dataset != null ) {
174
174
return dataset ;
175
175
} else {
176
176
/*
177
177
* We may have a dynamic dataset. First check the dynamic dataset cache.
178
178
*/
179
- if (dynamicDatasetCache != null ) {
179
+ if (dynamicDatasetCache != null ) {
180
180
Element element = dynamicDatasetCache .get (datasetId );
181
181
if (element != null && element .getObjectValue () != null ) {
182
182
return (Dataset ) element .getObjectValue ();
@@ -233,6 +233,7 @@ public Dataset getDatasetFromId(String datasetId) {
233
233
/*
234
234
* TODO log error
235
235
*/
236
+ e .printStackTrace ();
236
237
return null ;
237
238
}
238
239
}
You can’t perform that action at this time.
0 commit comments