aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVlad Dumitrescu <[email protected]>2014-09-10 09:47:22 +0200
committerVlad Dumitrescu <[email protected]>2014-09-11 21:24:09 +0200
commita40e940ff0d3c24342a460c2f1b19a24cc01185d (patch)
treef8c6abbfd2116739cbb2b73363872cace7a9db6a
parentcd39740a86aeeeba9da9ffb314b715ebc9158714 (diff)
downloadotp-a40e940ff0d3c24342a460c2f1b19a24cc01185d.tar.gz
otp-a40e940ff0d3c24342a460c2f1b19a24cc01185d.tar.bz2
otp-a40e940ff0d3c24342a460c2f1b19a24cc01185d.zip
remove unnecessary null pointer checks
-rw-r--r--lib/jinterface/java_src/com/ericsson/otp/erlang/OtpEpmd.java6
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpEpmd.java b/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpEpmd.java
index 1868dc7740..cf4e0ea98f 100644
--- a/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpEpmd.java
+++ b/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpEpmd.java
@@ -310,9 +310,7 @@ public class OtpEpmd {
final int n = s.getInputStream().read(tmpbuf);
if (n < 0) {
- if (s != null) {
s.close();
- }
throw new IOException("Nameserver not responding on "
+ node.host() + " when publishing " + node.alive());
}
@@ -341,9 +339,7 @@ public class OtpEpmd {
throw new IOException("Nameserver not responding on " + node.host()
+ " when publishing " + node.alive());
} catch (final OtpErlangDecodeException e) {
- if (s != null) {
s.close();
- }
if (traceLevel >= traceThreshold) {
System.out.println("<- (invalid response)");
}
@@ -351,9 +347,7 @@ public class OtpEpmd {
+ " when publishing " + node.alive());
}
- if (s != null) {
s.close();
- }
return null;
}