You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Motivation:
Class::getClassLoader can return null if the Class was loaded by the
bootstrap ClassLoader.
Modification:
Scan all non null ClassLoaders.
Result:
No more NPE when class was loaded by the bootstrap ClassLoader
Copy file name to clipboardExpand all lines: client/src/main/java/org/asynchttpclient/config/AsyncHttpClientConfigHelper.java
+38-18Lines changed: 38 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,8 @@
2
2
3
3
importjava.io.IOException;
4
4
importjava.io.InputStream;
5
+
importjava.util.ArrayList;
6
+
importjava.util.List;
5
7
importjava.util.Properties;
6
8
importjava.util.concurrent.ConcurrentHashMap;
7
9
@@ -18,10 +20,8 @@ public static Config getAsyncHttpClientConfig() {
18
20
}
19
21
20
22
/**
21
-
* This method invalidates the property caches. So if a system property has
22
-
* been changed and the effect of this change is to be seen then call
23
-
* reloadProperties() and then getAsyncHttpClientConfig() to get the new
24
-
* property values.
23
+
* This method invalidates the property caches. So if a system property has been changed and the effect of this change is to be seen then call reloadProperties() and then
24
+
* getAsyncHttpClientConfig() to get the new property values.
0 commit comments