diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-07-07 10:15:32 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-07-07 10:48:25 +0100 |
commit | 0d78ad871e85a74a2a7eac2f2a2ff94776f35e77 (patch) | |
tree | a29ea7098cc49b1116db16f219bdc662e04ac874 /jvmaccess/source | |
parent | 807b696c5c15dc2d8255116305fd28ba60f201c0 (diff) |
DBG_ASSERT->assert when followed by dereference
Change-Id: Ic1c999ffdc391ea01be5711721e7c9e63179473e
Diffstat (limited to 'jvmaccess/source')
-rw-r--r-- | jvmaccess/source/virtualmachine.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jvmaccess/source/virtualmachine.cxx b/jvmaccess/source/virtualmachine.cxx index 23192ab3e437..69bcf5fe6669 100644 --- a/jvmaccess/source/virtualmachine.cxx +++ b/jvmaccess/source/virtualmachine.cxx @@ -82,7 +82,7 @@ VirtualMachine::~VirtualMachine() JNIEnv * VirtualMachine::attachThread(bool * pAttached) const { - OSL_ENSURE(pAttached != 0, "bad parameter"); + assert(pAttached != 0 && "bad parameter"); JNIEnv * pEnv; jint n = m_pVm->GetEnv(reinterpret_cast< void ** >(&pEnv), m_nVersion); if (n != JNI_OK && n != JNI_EDETACHED) { |