File tree 1 file changed +3
-1
lines changed
jans-auth-server/server/src/main/java/io/jans/as/server/filter
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 27
27
import java .io .IOException ;
28
28
import java .net .URLDecoder ;
29
29
import java .nio .charset .StandardCharsets ;
30
+ import java .util .ArrayList ;
30
31
import java .util .Arrays ;
31
32
import java .util .Collection ;
33
+ import java .util .Collections ;
32
34
import java .util .List ;
33
35
34
36
/**
@@ -104,7 +106,7 @@ public void init(final FilterConfig filterConfig) throws ServletException {
104
106
@ Override
105
107
public void doFilter (ServletRequest servletRequest , ServletResponse servletResponse , FilterChain filterChain )
106
108
throws IOException , ServletException {
107
- Collection <String > globalAllowedOrigins = null ;
109
+ Collection <String > globalAllowedOrigins = new ArrayList <>( 0 ) ;
108
110
if (this .filterEnabled ) {
109
111
try {
110
112
globalAllowedOrigins = doFilterImpl (servletRequest );
You can’t perform that action at this time.
0 commit comments