|
|
|
@ -2488,7 +2488,11 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware { |
|
|
|
|
|
|
|
|
|
|
|
Cursor c = cursor; |
|
|
|
Cursor c = cursor; |
|
|
|
try { |
|
|
|
try { |
|
|
|
c.close(); |
|
|
|
|
|
|
|
|
|
|
|
if (c != null) { |
|
|
|
|
|
|
|
c.close(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} catch (RuntimeException ex) { |
|
|
|
} catch (RuntimeException ex) { |
|
|
|
throw potentiallyConvertRuntimeException(ex, exceptionTranslator); |
|
|
|
throw potentiallyConvertRuntimeException(ex, exceptionTranslator); |
|
|
|
} finally { |
|
|
|
} finally { |
|
|
|
|