diff options
author | Vlad Dumitrescu <[email protected]> | 2014-09-10 11:35:50 +0200 |
---|---|---|
committer | Vlad Dumitrescu <[email protected]> | 2014-09-11 21:24:26 +0200 |
commit | ea9ecb6c1cc2781c8ad9bdacaacc2245987df908 (patch) | |
tree | d057c17dafd5c15757d3a684b73133eb7dc74ff9 /lib/jinterface/test/jinterface_SUITE_data/NodeStatusHandler.java | |
parent | d0a1059d551c86d41ecbb36a1f23516eb71679c6 (diff) | |
download | otp-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/NodeStatusHandler.java')
-rw-r--r-- | lib/jinterface/test/jinterface_SUITE_data/NodeStatusHandler.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/jinterface/test/jinterface_SUITE_data/NodeStatusHandler.java b/lib/jinterface/test/jinterface_SUITE_data/NodeStatusHandler.java index 13c6203b15..06ddfa2d61 100644 --- a/lib/jinterface/test/jinterface_SUITE_data/NodeStatusHandler.java +++ b/lib/jinterface/test/jinterface_SUITE_data/NodeStatusHandler.java @@ -93,7 +93,10 @@ public class NodeStatusHandler extends OtpNodeStatus { } OtpErlangObject o = mbox.receive(recTime); - if (o == null) System.exit(2); + if (o == null) { + System.exit(2); + return; + } if (! ((OtpErlangAtom)o).atomValue().equals("done")) System.exit(3); |