Bug 34149

Summary: Some methods in JSC JNI bridge need more error checking of results from JNI.
Product: WebKit Reporter: Gavin Barraclough <barraclough>
Component: JavaAssignee: Gavin Barraclough <barraclough>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: OS X 10.5   
Attachments:
Description Flags
Preliminary patch (not even built!)
none
a patch andersca: review+

Description Gavin Barraclough 2010-01-25 16:28:23 PST
In JNIUtility.h, callJNIMethodV<jobject> might return null (from CallObjectMethodV, via JNICaller<jobject>::callV) if an exception is thrown.

All clients of callJNIMethodV<jobject> that are calling methods on the returned object should null check first.
Comment 1 Gavin Barraclough 2010-01-25 16:44:05 PST
Created attachment 47376 [details]
Preliminary patch (not even built!)
Comment 2 Gavin Barraclough 2010-01-25 19:14:56 PST
Created attachment 47381 [details]
a patch
Comment 3 Anders Carlsson 2010-01-26 13:46:07 PST
Comment on attachment 47381 [details]
a patch

Looks great! r=me with the changes we discussed (Change "[UNKNOWN ...]" to simply "Unknown")
Comment 4 Gavin Barraclough 2010-01-26 14:01:12 PST
Transmitting file data .......
Committed revision 53865.