On Thu, 19 Nov 2026 01:00:21 GMT, Kevin Rushforth <[email protected]> wrote:

>> Lukasz Kostyra has updated the pull request incrementally with one 
>> additional commit since the last revision:
>> 
>>   Review fixes from @kevinrushforth
>
> modules/javafx.graphics/src/main/native-prism-d3d12/D3D12NativeDevice.cpp 
> line 1084:
> 
>> 1082:     if (!shader) return false;
>> 1083: 
>> 1084:     D3D12::Internal::JNIString nameJStr(env, name);
> 
> Check for NULL and return.

Done

> modules/javafx.graphics/src/main/native-prism-d3d12/D3D12NativeDevice.cpp 
> line 1111:
> 
>> 1109:     if (!shader) return false;
>> 1110: 
>> 1111:     D3D12::Internal::JNIString nameJStr(env, name);
> 
> Check for NULL and return.

Done

> modules/javafx.graphics/src/main/native-prism-d3d12/internal/D3D12Config.cpp 
> line 67:
> 
>> 65: 
>> 66:     jboolean isCopy = false;
>> 67:     const char* propValue = mJNIEnv->GetStringUTFChars(propValueStr, 
>> &isCopy);
> 
> This should also be checked for pending JNI exceptions or NULL before using 
> it to create a string.

Done

-------------

PR Review Comment: https://git.openjdk.org/jfx/pull/2346#discussion_r4630459543
PR Review Comment: https://git.openjdk.org/jfx/pull/2346#discussion_r4630460546
PR Review Comment: https://git.openjdk.org/jfx/pull/2346#discussion_r4630437163

Reply via email to