bug 10618: another place that could possibly throw NPE

This commit is contained in:
Kelven Yang 2011-07-08 09:54:15 -07:00
parent 70b1c69ef3
commit 97cdf2eccd
1 changed files with 2 additions and 1 deletions

View File

@ -192,7 +192,8 @@ public class NfsSecondaryStorageResource extends ServerResourceBase implements S
}
finally {
try {
is.close();
if(is != null)
is.close();
} catch (IOException e) {
if(s_logger.isDebugEnabled()){
s_logger.debug("Could not close the file " +absoluteTemplatePath);