harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jim Yu (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-6285) [JDWP][Java6] Fix a bug in Execute method of GetValuesHandler that might result in crash
Date Fri, 24 Jul 2009 09:06:14 GMT
[JDWP][Java6] Fix a bug in Execute method of GetValuesHandler that might result in crash
----------------------------------------------------------------------------------------

                 Key: HARMONY-6285
                 URL: https://issues.apache.org/jira/browse/HARMONY-6285
             Project: Harmony
          Issue Type: Bug
          Components: JDK
    Affects Versions: 5.0M10
            Reporter: Jim Yu
             Fix For: 5.0M11


In Execute method of GetValuesHandler, if the array object can't be retrieved from the MapFromObjectID
method, the value for it would be null. 
Then, in the following JNI method, a null value passed to it would definitely result in a
crash. To solve the problem, we should throw an exception to notify the upper level method
that "GetValues: ReadArrayID() returned NULL".

jclass arrObjClass = jni->GetObjectClass(arrayObject);

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message