mtchamengo / aparapi

Automatically exported from code.google.com/p/aparapi
Other
0 stars 0 forks source link

NULL class object in jni call #88

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

What is the expected output? What do you see instead?

 I found this while doing some lambda experiments. It looks like a cut/paste error where it is passing a NULL class ref:

com.amd.aparapi.jni/src/cpp/jniHelper.cpp:

@@ -234,7 +234,7 @@
       return(NULL);
    }

-   jobject value = jenv->GetStaticObjectField(NULL, fieldId);
+   jobject value = jenv->GetStaticObjectField(theClass, fieldId);
    if (value == NULL || jenv->ExceptionCheck()) {
       jenv->ExceptionDescribe(); 

I will check in the fix shortly.

Please use labels and text to provide additional information.

Original issue reported on code.google.com by ecasp...@gmail.com on 19 Dec 2012 at 5:54

GoogleCodeExporter commented 9 years ago
Fixed in rev 904

Original comment by ecasp...@gmail.com on 19 Dec 2012 at 7:53

GoogleCodeExporter commented 9 years ago
Eric, 

Do you think that this may have been the cause of issue #87?

http://code.google.com/p/aparapi/issues/detail?id=87
?

Original comment by frost.g...@gmail.com on 19 Dec 2012 at 8:41