* reference may be local, global, or weak-global.
*
* If "jobj" is NULL or an invalid indirect reference, this returns NULL.
+ *
+ * Note "env" may be NULL when decoding global references.
*/
Object* dvmDecodeIndirectRef(JNIEnv* env, jobject jobj)
{
argsCopy.version = args->version;
argsCopy.name = args->name;
if (args->group != NULL)
- argsCopy.group = args->group;
+ argsCopy.group = dvmDecodeIndirectRef(NULL, args->group);
else
argsCopy.group = dvmGetMainThreadGroup();
}