Avoid possible NPE

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@939859 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sebastian Bazley 2010-04-30 22:43:26 +00:00
parent 416085813e
commit aaf723d2be
1 changed files with 6 additions and 2 deletions

View File

@ -62,7 +62,9 @@ public class DefaultCacheEntrySerializer implements HttpCacheEntrySerializer<Cac
// oos.writeObject(sheaders);
} finally {
try {
if (oos != null) {
oos.close();
}
} catch (Exception ignore) {
}
try {
@ -95,7 +97,9 @@ public class DefaultCacheEntrySerializer implements HttpCacheEntrySerializer<Cac
throw new RuntimeException(cnfe);
} finally {
try {
if (ois != null) {
ois.close();
}
} catch (Exception ignore) {
}
try {