File tree 1 file changed +5
-3
lines changed
src/java.desktop/unix/native/common/awt
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 1998, 2021 , Oracle and/or its affiliates. All rights reserved.
2
+ * Copyright (c) 1998, 2022 , Oracle and/or its affiliates. All rights reserved.
3
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
*
5
5
* This code is free software; you can redistribute it and/or modify it
@@ -935,8 +935,10 @@ Java_sun_font_FontConfigManager_getFontConfig
935
935
if (cacheDirs != NULL ) {
936
936
while ((cnt < max ) && (cacheDir = (* FcStrListNext )(cacheDirs ))) {
937
937
jstr = (* env )-> NewStringUTF (env , (const char * )cacheDir );
938
- JNU_CHECK_EXCEPTION (env );
939
-
938
+ if (IS_NULL (jstr )) {
939
+ (* FcStrListDone )(cacheDirs );
940
+ return ;
941
+ }
940
942
(* env )-> SetObjectArrayElement (env , cacheDirArray , cnt ++ , jstr );
941
943
(* env )-> DeleteLocalRef (env , jstr );
942
944
}
You can’t perform that action at this time.
0 commit comments