aboutsummaryrefslogtreecommitdiffstats
path: root/lib/jinterface/test/jinterface_SUITE_data/NodeStatusHandler.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/NodeStatusHandler.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/NodeStatusHandler.java')
-rw-r--r--lib/jinterface/test/jinterface_SUITE_data/NodeStatusHandler.java5
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);