mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-22 21:55:39 +00:00
bug6101: added missing null check for origin
This commit is contained in:
@@ -30,7 +30,7 @@ public class CORSFilterConfigurationImpl implements CORSFilterConfiguration {
|
||||
|
||||
@Override
|
||||
public boolean contains(String origin) {
|
||||
return allowedOrigins.contains(origin.toLowerCase());
|
||||
return origin != null && allowedOrigins.contains(origin.toLowerCase());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user