diff options
author | 2017-02-14 11:10:34 -0800 | |
---|---|---|
committer | 2017-02-14 11:44:48 -0800 | |
commit | fa4333dcb481e564f54726b4e6f8153612df835e (patch) | |
tree | ae597c7587dc214434a180962c4373d3748f51ab /runtime/entrypoints/entrypoint_utils.cc | |
parent | 2d98ba68f13dc219c088a12f369c5778bf398f14 (diff) |
ART: Add operator == and != with nullptr to Handle
Get it in line with ObjPtr and prettify our code.
Test: m
Change-Id: I1322e2a9bc7a85d7f2441034a19bf4d807b81a0e
Diffstat (limited to 'runtime/entrypoints/entrypoint_utils.cc')
-rw-r--r-- | runtime/entrypoints/entrypoint_utils.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/entrypoints/entrypoint_utils.cc b/runtime/entrypoints/entrypoint_utils.cc index fb8139b7c6..6301362e09 100644 --- a/runtime/entrypoints/entrypoint_utils.cc +++ b/runtime/entrypoints/entrypoint_utils.cc @@ -39,7 +39,7 @@ namespace art { void CheckReferenceResult(Handle<mirror::Object> o, Thread* self) { - if (o.Get() == nullptr) { + if (o == nullptr) { return; } // Make sure that the result is an instance of the type this method was expected to return. |