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:
parent
416085813e
commit
aaf723d2be
|
@ -62,7 +62,9 @@ public class DefaultCacheEntrySerializer implements HttpCacheEntrySerializer<Cac
|
||||||
// oos.writeObject(sheaders);
|
// oos.writeObject(sheaders);
|
||||||
} finally {
|
} finally {
|
||||||
try {
|
try {
|
||||||
oos.close();
|
if (oos != null) {
|
||||||
|
oos.close();
|
||||||
|
}
|
||||||
} catch (Exception ignore) {
|
} catch (Exception ignore) {
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
|
@ -95,7 +97,9 @@ public class DefaultCacheEntrySerializer implements HttpCacheEntrySerializer<Cac
|
||||||
throw new RuntimeException(cnfe);
|
throw new RuntimeException(cnfe);
|
||||||
} finally {
|
} finally {
|
||||||
try {
|
try {
|
||||||
ois.close();
|
if (ois != null) {
|
||||||
|
ois.close();
|
||||||
|
}
|
||||||
} catch (Exception ignore) {
|
} catch (Exception ignore) {
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in New Issue