Added ScopeProvider.instance.reset() in finally statement
git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/data-transfer/uri-resolver@128574 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
1d79703f6f
commit
36b49746d3
|
@ -169,6 +169,8 @@ public class ApplicationProfileReader {
|
|||
logger.error("Error while trying to fetch applicationProfile profile from the infrastructure");
|
||||
e.printStackTrace();
|
||||
return null;
|
||||
}finally{
|
||||
ScopeProvider.instance.reset();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -91,6 +91,8 @@ public class GeoRuntimeReader {
|
|||
}catch (Exception e) {
|
||||
logger.error("Sorry, an error occurred on reading parameters in Runtime Reosurces",e);
|
||||
e.printStackTrace();
|
||||
}finally{
|
||||
ScopeProvider.instance.reset();
|
||||
}
|
||||
|
||||
return parameters;
|
||||
|
|
Loading…
Reference in New Issue