Skip to content

Commit

Permalink
Merge branch 'develop' into feature/jsr-310-localdate
Browse files Browse the repository at this point in the history
  • Loading branch information
benfortuna committed Jan 4, 2022
2 parents c2bf3be + de9b686 commit 708ea17
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions build.gradle
Expand Up @@ -61,6 +61,7 @@ dependencies {

testCompile "org.codehaus.groovy:groovy:$groovyVersion",
"org.slf4j:slf4j-log4j12:$slf4jVersion",
"org.apache.logging.log4j:log4j:$log4jVersion",
"org.ccil.cowan.tagsoup:tagsoup:$tagsoupVersion",
"org.cache2k:cache2k-jcache:$jcacheVersion",
"org.codehaus.groovy:groovy-xml:$groovyVersion"
Expand Down
3 changes: 2 additions & 1 deletion gradle.properties
@@ -1,4 +1,5 @@
slf4jVersion = 1.7.30
slf4jVersion = 1.7.32
log4jVersion = 2.15.0
commonsCodecVersion = 1.11
commonsLangVersion = 3.8.1
commonsCollectionsVersion = 4.1
Expand Down
4 changes: 3 additions & 1 deletion src/main/java/net/fortuna/ical4j/util/ResourceLoader.java
Expand Up @@ -76,7 +76,9 @@ public static URL getResource(String name) {
public static InputStream getResourceAsStream(String name) {
InputStream stream = null;
try {
stream = Thread.currentThread().getContextClassLoader().getResourceAsStream(name);
if (Thread.currentThread().getContextClassLoader() != null) {
stream = Thread.currentThread().getContextClassLoader().getResourceAsStream(name);
}
} catch (SecurityException e) {
LOG.info("Unable to access context classloader, using default. " + e.getMessage());
}
Expand Down

0 comments on commit 708ea17

Please sign in to comment.