aboutsummaryrefslogtreecommitdiffstats
path: root/lib/jinterface/test/jinterface_SUITE_data/MboxLinkUnlink.java
diff options
context:
space:
mode:
authorVlad Dumitrescu <[email protected]>2014-09-10 11:35:50 +0200
committerVlad Dumitrescu <[email protected]>2014-09-11 21:24:26 +0200
commitea9ecb6c1cc2781c8ad9bdacaacc2245987df908 (patch)
treed057c17dafd5c15757d3a684b73133eb7dc74ff9 /lib/jinterface/test/jinterface_SUITE_data/MboxLinkUnlink.java
parentd0a1059d551c86d41ecbb36a1f23516eb71679c6 (diff)
downloadotp-ea9ecb6c1cc2781c8ad9bdacaacc2245987df908.tar.gz
otp-ea9ecb6c1cc2781c8ad9bdacaacc2245987df908.tar.bz2
otp-ea9ecb6c1cc2781c8ad9bdacaacc2245987df908.zip
handle warnings about potential null pointers
Diffstat (limited to 'lib/jinterface/test/jinterface_SUITE_data/MboxLinkUnlink.java')
-rw-r--r--lib/jinterface/test/jinterface_SUITE_data/MboxLinkUnlink.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/jinterface/test/jinterface_SUITE_data/MboxLinkUnlink.java b/lib/jinterface/test/jinterface_SUITE_data/MboxLinkUnlink.java
index 79be4aa933..470fdb4a14 100644
--- a/lib/jinterface/test/jinterface_SUITE_data/MboxLinkUnlink.java
+++ b/lib/jinterface/test/jinterface_SUITE_data/MboxLinkUnlink.java
@@ -73,7 +73,10 @@ class MboxLinkUnlink {
OtpErlangObject[] msg = {mainMbox.self(),mbox.self()};
mbox.send("erl_link_server", erlNode, new OtpErlangTuple(msg));
OtpErlangObject o = mbox.receive(1000);
- if (o == null) System.exit(1);
+ if (o == null) {
+ System.exit(1);
+ return;
+ }
OtpErlangTuple tuple = (OtpErlangTuple)o;
int tag = (int)((OtpErlangLong)tuple.elementAt(0)).longValue();