Skip to content

Commit dc7b221

Browse files
committed
Merge pull request #56 from sethgho/use-current-thread-class-loader
Use current thread class loader to fetch SDK version
2 parents d71ad42 + 78c96a9 commit dc7b221

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/pubnub/api/PubNub.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ public final void reconnect() {
232232
*/
233233
private String fetchSDKVersion() {
234234
Properties prop = new Properties();
235-
InputStream in = ClassLoader.getSystemClassLoader().getResourceAsStream("version.properties");
235+
InputStream in = Thread.currentThread().getContextClassLoader().getResourceAsStream("version.properties");
236236
try {
237237
prop.load(in);
238238
} catch (IOException e) {

0 commit comments

Comments
 (0)