Skip to content

Commit bb27bb3

Browse files
author
Christoph Henrici
committed
Fix TenantFilter
1 parent 7dbe3d5 commit bb27bb3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/main/java/ch/henr/reactboot/config/TenantFilter.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ public class TenantFilter extends OncePerRequestFilter {
2525
private final TenantRepository tenants;
2626
private final DemoSeedService demoSeed; // inject (present only in
2727

28+
public TenantFilter() {
29+
this.tenants = null;
30+
this.demoSeed = null;
31+
}
32+
2833
public TenantFilter(TenantRepository tenants) {
2934
this.tenants = tenants;
3035
this.demoSeed = null;
@@ -35,6 +40,8 @@ public TenantFilter(TenantRepository tenants, DemoSeedService demoSeed) {
3540
this.demoSeed = demoSeed;
3641
}
3742

43+
44+
3845
@Override
3946
protected void doFilterInternal(HttpServletRequest req, HttpServletResponse res, FilterChain chain)
4047
throws ServletException, IOException {

0 commit comments

Comments
 (0)