summaryrefslogtreecommitdiff
path: root/runtime/entrypoints/entrypoint_utils.cc
diff options
context:
space:
mode:
author Andreas Gampe <agampe@google.com> 2017-02-14 11:10:34 -0800
committer Andreas Gampe <agampe@google.com> 2017-02-14 11:44:48 -0800
commitfa4333dcb481e564f54726b4e6f8153612df835e (patch)
treeae597c7587dc214434a180962c4373d3748f51ab /runtime/entrypoints/entrypoint_utils.cc
parent2d98ba68f13dc219c088a12f369c5778bf398f14 (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.cc2
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.