From 821908f431da5815b0ca1d0c39f5f30c4c3ce0f3 Mon Sep 17 00:00:00 2001
From: ulrich
Date: Fri, 23 Feb 2024 12:44:47 +0000
Subject: [PATCH] Filter hinzugefuegt

---
 src/de/uhilger/neon/Factory.java |   16 +++++++++-------
 1 files changed, 9 insertions(+), 7 deletions(-)

diff --git a/src/de/uhilger/neon/Factory.java b/src/de/uhilger/neon/Factory.java
index 6e2f441..14015d5 100644
--- a/src/de/uhilger/neon/Factory.java
+++ b/src/de/uhilger/neon/Factory.java
@@ -200,13 +200,15 @@
         //    ctx.getAttributes().putAll(d.authenticator.attributes);
         //    fireAuthenticatorCreated(ctx, auth);
         //}
-        for(String filterClassName : cd.filter) {
-          //
-          Object filterObj = Class.forName(filterClassName)
-                .getDeclaredConstructor().newInstance();
-          if(filterObj instanceof Filter) {
-            Filter filter = (Filter) filterObj;
-            ctx.getFilters().add(filter);
+        if(cd.filter != null) {
+          for(String filterClassName : cd.filter) {
+            //
+            Object filterObj = Class.forName(filterClassName)
+                  .getDeclaredConstructor().newInstance();
+            if(filterObj instanceof Filter) {
+              Filter filter = (Filter) filterObj;
+              ctx.getFilters().add(filter);
+            }
           }
         }
         fireHandlerCreated(ctx, h);

--
Gitblit v1.9.3