You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@reef.apache.org by ma...@apache.org on 2016/04/12 02:33:05 UTC

reef git commit: [REEF-1334] Replace comparison with 0 with a comparison witn NULL in the bridge

Repository: reef
Updated Branches:
  refs/heads/master 762ea0a15 -> 897fd3f2a


[REEF-1334] Replace comparison with 0 with a comparison witn NULL in the bridge

JIRA:
  [REEF-1334](https://issues.apache.org/jira/browse/REEF-1334)

Pull Request:
  This closes #


Project: http://git-wip-us.apache.org/repos/asf/reef/repo
Commit: http://git-wip-us.apache.org/repos/asf/reef/commit/897fd3f2
Tree: http://git-wip-us.apache.org/repos/asf/reef/tree/897fd3f2
Diff: http://git-wip-us.apache.org/repos/asf/reef/diff/897fd3f2

Branch: refs/heads/master
Commit: 897fd3f2a5703bac25ebd56173615324ada67e8c
Parents: 762ea0a
Author: Markus Weimer <we...@apache.org>
Authored: Mon Apr 11 15:12:23 2016 -0700
Committer: Mariia Mykhailova <ma...@apache.org>
Committed: Mon Apr 11 17:32:27 2016 -0700

----------------------------------------------------------------------
 lang/cs/Org.Apache.REEF.Bridge/InteropReturnInfo.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/reef/blob/897fd3f2/lang/cs/Org.Apache.REEF.Bridge/InteropReturnInfo.cpp
----------------------------------------------------------------------
diff --git a/lang/cs/Org.Apache.REEF.Bridge/InteropReturnInfo.cpp b/lang/cs/Org.Apache.REEF.Bridge/InteropReturnInfo.cpp
index 71d0a2e..815d446 100644
--- a/lang/cs/Org.Apache.REEF.Bridge/InteropReturnInfo.cpp
+++ b/lang/cs/Org.Apache.REEF.Bridge/InteropReturnInfo.cpp
@@ -73,7 +73,7 @@ namespace Org {
 
 				Boolean InteropReturnInfo::HasExceptions() {
 					jobject obj = _env->CallObjectMethod(_jobjectInteropReturnInfo, _jmidHasExceptions);
-					return ((int)obj) != 0;
+					return obj != NULL;
 				}
 				void InteropReturnInfo::SetReturnCode(int rc) {
 					_env->CallObjectMethod(_jobjectInteropReturnInfo, _jmidsetReturnCode, rc);