Skip to content

Commit ace856d

Browse files
committed
Use getContainer() instead of accessing field directly. Fixes #49.
1 parent a89e241 commit ace856d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/com/orangefunction/tomcat/redissessions/RedisSessionManager.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -674,14 +674,14 @@ private void initializeSerializer() throws ClassNotFoundException, IllegalAccess
674674

675675
Loader loader = null;
676676

677-
if (container != null) {
678-
loader = container.getLoader();
677+
if (getContainer() != null) {
678+
loader = getContainer().getLoader();
679679
}
680680

681681
ClassLoader classLoader = null;
682682

683683
if (loader != null) {
684-
classLoader = loader.getClassLoader();
684+
classLoader = loader.getClassLoader();
685685
}
686686
serializer.setClassLoader(classLoader);
687687
}

0 commit comments

Comments
 (0)