8035340: (prefs) Check jdk/src/windows/native/java/util/WindowsPreference.c for JNI pending exceptions

Check for JNI pending exceptions. Add null checks after malloc calls

Reviewed-by: alanb, chegar
1 file changed